Answers for "use packages in r"

R
2

r load packages

# Basic syntax:
library(package_to_load)

# Note, the package has to be installed before you can load it
# Note, when you install a package, the package name has to be in quotes
#	but when you load it, it shouldn't be
Posted by: Guest on October-11-2020
1

use packages in r

#Install package. 
install.packages("<package_name>")

#Load the package to use it in your code.
library (<package_name>)

#NB: If using an anaconda environment, install packagesin your terminal by 
#running code below:
conda install r-<package_name)
Posted by: Guest on September-21-2021

Browse Popular Code Answers by Language