Home

R Notes

These are my notes organizing the concepts / terms / commands / functions I came to learn while using R.

1. "<-": <- is the phrase used to assign a new object. Since it's a phrase you use often, I think it's convenient to set a keyboard shortcut. Because R continually requires assigning new objects (to define new variables), and it's too tedious to type that each time. So let's make a shortcut that types '<-' for us.

2. install.packages("X"): this is the package-install command. There are two ways to install packages: one installs only the package at a specified path, and the other installs all packages uploaded to a site. Of these I used the latter, and as a result an enormous number of packages are installed. Installation is all done automatically, so just use them well.

Comments 0

No comments yet. Be the first.