8
R Brown-Bag Seminar 2: Hands-on Antony Karanja Ndungu ([email protected]) Research Methods Group-ICRAF

R Brown-Bag Seminar 2: Hands-on Antony Karanja Ndungu ([email protected]) Research Methods Group-ICRAF

Embed Size (px)

Citation preview

R Brown-Bag Seminar 2: Hands-on

Antony Karanja Ndungu([email protected])

Research Methods Group-ICRAF

STUDIO

R downloaded

and in

stalle

d? http

://www.r-

projec

t.org

/

R Studio http

://www.rs

tudio.com/

Getting started to Working with R • Get Started to R– R downloaded and installed? (http://www.r-project.org/ )– R Studio (http://www.rstudio.com/)

• R language – Object oriented programming. - No desk menu! (Rmcdr)

• Assign objects to manipulations.• Nature of Data Objects

Data frames, vectors, matrices, lists (maps, data, etc)

Getting started to Working with R • Operations on data objects

Base and libraries- functions/commandsScripting in R (Setwd, getwd())

• Working with R - Loading data (Data objects); libraries

(foreign- Working with really data. Loading/

recalling data- Data validation and cleaning- Data management (sub setting, collapse, merging, appending, Reshaping etc.

R Script

Console-Output

Data ObjectsHistory..

Hands-on R!

Statistics using R

Tabulations and Summaries Plotting simple graphs

(Box plots, histograms, plots of tabular data)