next up previous
Next: Installing R libraries locally Up: R, S, and Splus Previous: If/else syntax issues

Libraries in R

The comprehensive R archive (CRAN) has a bunch of very useful libraries. You can install a library from within R using the install.packages() function. Among the useful libraries I use are:

If your favorite Splus command is not available in R, it's likely that the command or an equivalent version of it is available in an R library that hasn't been loaded. A little rooting around at CRAN will usually do the trick.

To load a library automatically when you begin your R session, include the line
library(lib_name)
in your .Rprofile file.


next up previous
Next: Installing R libraries locally Up: R, S, and Splus Previous: If/else syntax issues
Chris Paciorek 2012-01-21