How many R packages are there

Packages in R

In addition to the usual functions, R also has many tricks up its sleeve. Due to the fact that R is a program that everyone can work on, a large number of packages are available to you (list of all available additional packages), which always correspond to the latest statistical trends. To use these packages, you have to download them. You have two options for doing this - from the R command line or by installing a command. This is install.packages ()

For example, if you want to install the "psych" package, enter the following command:

install.packages ("psych")

Some of the packages require additional additional packages. These are automatically installed with the following extended command:

install.packages ("psych", dependencies = TRUE)

In order to better understand the package with its individual commands, it is possible either to call up the pdf in the list of all available additional packages or via the help function:

help (psych)


? psych

To activate packages, enter the following:

library (psych)

If the functions of the additional packages are no longer required, they can be opened with

detach ("package: psych")

deactivated. The R basic and additional packages can be combined with

update.packages (psych)

To update. You can get an overview of which packages and in which version you have installed via the command

installed.packages ()