Packages are basically code bundles that enable certain functions and data sets
to be used. If you know the name of the package that you wish to install,
(in this example that package is car
), then use:
> install.packages("car")
Once the package is installed, it can be referenced by using library
to call
it.
> library(car)
The active packages can be checked by using:
> (.packages())
Removing packages is known as “detaching” them. The following example removes
the car
package.
> detach("package:car")