[1] 1 2 3 4 5 6 7 8 9 10
Thanks to those of you who are helping classmates!
Next Wednesday at 11:45pm:
Default vector printing:
Each line gets a new index:
[1] 1.000000 1.414214 1.732051 2.000000 2.236068 2.449490 2.645751 2.828427
[9] 3.000000 3.162278
More complex objects have alternate print styles:
Print width is controlled by getOption("width")
.
Alignment by default:
Recycling by default:
Recycle warning when vectors don’t fit together cleanly:
Warning in x + y: longer object length is not a multiple of shorter object
length
[1] 5 7 7
Not a problem per se, but often a sign that something has gone wrong.
Most built-in functions can’t / shouldn’t be changed.
Some allow alternate behavior via additional arguments:
If you want different behavior, write your own function:
Always try ?name
to see documentation.
Three key commands:
git add
: add some changes to a ‘box’git commit
: seal the ‘box’git push
: send the ‘box’ to GitHubGit
pane in RStudio
shows uncommited changes, not files.
If a file ‘vanishes’ after a commit, that’s good!