R instalați pachetul

Exemple de cod

9
0

r instalați pachetul

# Basic syntax:
install.packages("package_you_want")

# To then use the package in R, you need to run:
library(package_you_want)
# Note, when you install a package, the package name has to be in quotes
#	but when you load it, it shouldn't be

# If your package isn't in the main CRAN repositry (which is rare), use:
install.packages("package_you_want", "https://other.repo.url.com")
# Where there other repo URL is the base URL of the other repository
1
0

instalați pachetul în r

#install (if not already installed) and load tseries package
if(!require(packageName)){install.packages('packageName')} else{library(packageName)}
0
0

cum se face un pachet r care își instalează dependențele

install.packages("mypackage.tar.gz",type="source",dependencies=TRUE,repos="http://a.cran.mirror")

Pagini similare

Pagini similare cu exemple

În alte limbi

Această pagină este în alte limbi

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................

Popular în această categorie

Pagini populare cu exemple din categorie