Essa é uma revisão anterior do documento!
Tabela de conteúdos
Materiais do curso
Course materials
| Course Slides | CSV data files | R scripts |
|---|---|---|
| PDF slides | CSV files | R scripts |
| Slides powerpoint | – | – |
Other materials
- ASOR package
- .tar.gz file (for linux install)
- .zip file (for windows install)
Instructions
In the following $ is the LINUX prompt and > is the R prompt
- Open a
terminal windowwhere you can type LINUX commands - create a working directory called
Rmodellingfor the course and get into the directory:$ mkdir Rmodelling $ cd Rmodelling
- download the zipped files above (csv.zip, scripts.zip, slides.zip) copying them to the working directory
- unzip the files with the following commands:
Rcourse$ unzip csv.zip Rcourse$ unzip scripts.zip Rcourse$ unzip slides.zip
- copy two files from the CSV directory to the working directory:
Rcourse$ cp CSV/.RData . Rcourse$ cp CSV/makeInputData .
- Start
Rinside theRcoursedirectory — this will makeRcourseyour working directory. You can do this in two different ways:- Running
Rdirectly from theLINUX terminalsimply by typingR:Rcourse$ R
- running from inside the editor
xemacs— openxemacsand stard R from itRcourse$ xemacs &
- From inside
Rrun themakeInputData.Rscript<code R>
> source(“makeInputData.R”) </code R>
- The script will automatically generate another script file called
inputData.Rwhich reads all the data needed for the course. This script file should be run with:<code R>
> source(“inputData.R”) </code R>