05.12.2012 Views

What documentation exists for R?

What documentation exists for R?

What documentation exists for R?

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 5: R Add-On Packages 75<br />

☛ ✟<br />

Packages in ‘/home/me/lib/R’:<br />

mystuff My own R functions, nicely packaged but not documented<br />

Packages in ‘/usr/local/lib/R/library’:<br />

KernSmooth Functions <strong>for</strong> kernel smoothing <strong>for</strong> Wand & Jones (1995)<br />

MASS Main Package of Venables and Ripley’s MASS<br />

base The R Base package<br />

boot Bootstrap R (S-Plus) Functions (Canty)<br />

class Functions <strong>for</strong> Classification<br />

cluster Functions <strong>for</strong> clustering (by Rousseeuw et al.)<br />

datasets The R datasets Package<br />

<strong>for</strong>eign Read data stored by Minitab, S, SAS, SPSS, Stata, ...<br />

grDevices The R Graphics Devices and Support <strong>for</strong> Colours and Fonts<br />

graphics The R Graphics Package<br />

grid The Grid Graphics Package<br />

lattice Lattice Graphics<br />

methods Formal Methods and Classes<br />

mgcv GAMs with GCV smoothness estimation and GAMMs by REML/PQ<br />

nlme Linear and nonlinear mixed effects models<br />

nnet Feed-<strong>for</strong>ward Neural Networks and Multinomial Log-Linear<br />

Models<br />

rpart Recursive partitioning<br />

spatial Functions <strong>for</strong> Kriging and Point Pattern Analysis<br />

splines Regression Spline Functions and Classes<br />

stats The R Stats Package<br />

stats4 Statistical functions using S4 classes<br />

survival Survival analysis, including penalised likelihood<br />

tcltk Tcl/Tk Interface<br />

tools Tools <strong>for</strong> Package Development<br />

utils The R Utils Package<br />

✡ ✠<br />

You can “load” the installed package pkg by<br />

library(pkg)<br />

You can then find out which functions it provides by typing one of<br />

library(help = pkg)<br />

help(package = pkg)<br />

You can unload the loaded package pkg by<br />

detach("package:pkg")<br />

5.4 How can add-on packages be removed?<br />

Use<br />

$ R CMD REMOVE pkg_1 ... pkg_n<br />

to remove the packages pkg 1, . . ., pkg n from the library tree rooted at the first directory<br />

given in R_LIBS if this is set and non-null, and from the default library otherwise. (Versions<br />

of R prior to 1.3.0 removed from the default library by default.)<br />

To remove from library lib, do<br />

$ R CMD REMOVE -l lib pkg_1 ... pkg_n

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!