R Packages

From Wiki
Revision as of 23:26, 1 February 2011 by Scott (talk | contribs) (Created page with 'To use a package, it must first be installed on the system. Then you load it into your current session. To get the list of packages loaded by default: <pre> > getOption("defaul…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To use a package, it must first be installed on the system. Then you load it into your current session.

To get the list of packages loaded by default:

> getOption("defaultPackages")

To see the list of currently loaded packages:

> (.packages())

To show all available packages:

(.packages(all.available=TRUE))

To load a package:

> library(rpart)