<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Labo 2 - Statistiques univariées
Step1:  Aide
Step2:  Autres ressources
http
Step3:  Espace de travail
Step4:  Import fichier externe
<ASSISTANT_TASK:>
Python Code:
%reload_ext rpy2.ipython
import pandas as pd
Explanation: Labo 2 - Statistiques univariées
End of explanation
%%R
# help()
# help(function)
# help(package='package-name)
Explanation: Aide
End of explanation
%%R
# install
# install.packages('package-name')
# already installed with conda
#install.packages("foreign")
#install.packages("Rcmdr", dependencies = TRUE)
# new installs
install.packages("nortest", repos="http://cran.rstudio.com/")
install.packages("sas7bdat", repos="http://cran.rstudio.com/")
install.packages("Hmisc", repos="http://cran.rstudio.com/")
install.packages("pastecs", repos="http://cran.rstudio.com/")
%%R
# import
# library('package-name')
library(foreign)
library(nortest)
library(sas7bdat)
library(Hmisc)
library(pastecs)
Explanation: Autres ressources
http://www.ats.ucla.edu/stat/r/
http://www.ats.ucla.edu/stat/dae/
https://us.sagepub.com/en-us/nam/discovering-statistics-using-r/book236067
Paquets
End of explanation
# jupyter "magic : integration with shell
%pwd
Explanation: Espace de travail
End of explanation
%%R
# import excel : via txt tab separated
fichierTexte <- read.table("data/labo-2/SR_Data.txt", header = TRUE)
head(fichierTexte)
Explanation: Import fichier externe
End of explanation
<END_TASK>