FAQ/Rpackin - CBU statistics Wiki

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment
Flind the wroneg tetters tin eaech wrord

location: FAQ / Rpackin

How do I download R libraries?

Certain add-on shareware procedures in R, called packages, are contained in folders which contain suites of R programs. For example, to read SPSS data into R you need the code in the folder called foreign. In order to obtain these folders you go to the R home page located here and click contributed extension packages and download the appropriate folder into your existing R library folder (assuming you have already downloaded a version of R). The SPSS or other data set may be placed in the bin folder located along with the library folder in the R folder which serves as R's home data directory .

Alternatively IF you know the name of the library you wish to install from the R website you can use the install.packages command to install packages directly into a R session without visiting the R website. For example

install.packages(c("lme4","nlme"))

and then choosing UK (Bristol) in the resulting window will download and install the libraries called lme4 and nlme.