Professional Documents
Culture Documents
R Program - R Version and Packages
R Program - R Version and Packages
All images used in this presentation are property of respective image holders.
Images are used only for indicative purpose and does not carry any other
meaning. 2
PACKAGES
Check R Version
EXAMPLE
> R.version()
information about the version
> version
of R running.
Packages and Why?
R functions and datasets are stored in packages.
Contents of packages are available only when datasets are loaded.
EXAMPLES
# View list of packages # View list of packages
> View(installed.packages()) > View(installed.packages())
> install.packages(‘cluster')
# Remove package
> detach("package:splines")
Search Package
> help(glm)
> ?glm
> example(glm)
EXAMPLES
> rm(x)
# Removes all objects from the > rm(y)
current workspace (R memory)
> rm(list=ls()) # Remove multiple objects
> rm(x,y)
SAVE AND LOAD COMMAND
HISTORY
Save and Load Command History