Labo 2 R

Aide


In [1]:
# help()
# help(function)
# help(package='package-name)

Paquets


In [4]:
# install
# install.packages('package-name')

# already installed with conda
#install.packages("foreign")
#install.packages("Rcmdr", dependencies = TRUE)

# new installs
install.packages("nortest")
install.packages("sas7bdat")
install.packages("Hmisc")
install.packages("pastecs")


Error in contrib.url(repos, type): trying to use CRAN without setting a mirror

In [6]:
# import
# library('package-name')

library(foreign)
#library(nortest)
#library(sas7bdat)
#library(Hmisc)
#library(pastecs)


Error in library(Hmisc): there is no package called ‘Hmisc’
Error in library(pastecs): there is no package called ‘pastecs’

Import fichier externe

Structuration d'un tableau

Variable centrée-réduite

Fonctions statistiques