R Tutorial
R Tutorial
Language
Quick Tutorial
Agenda
Introduction
Data Types
Free Format Input
Simple Graphs
Agenda
Introduction
Data Types
Free Format Input
Simple Graphs
What is R
R is a free software programming language and
software environment for statistical computing
and graphics. (Wikipedia)
Download R
R is available for Windows, Linux and MacOS
Download it from:
http://www.r-project.org/
Agenda
Introduction
Data Types
Free Format Input
Simple Graphs
Data Types
Numeric:
Agenda
Introduction
Data Types
Free Format Input
Simple Graphs
Agenda
Introduction
Data Types
Free Format Input
Simple Graphs
Simple Graphs
Useful Function
q(): quit R
getwd(), setwd(): get and set working
directory
help(functionName) or ?functionName
mean(), var(), cov(), cor(), summary() .. etc
Note: R depends on functions rather than
commands. So, the use of parenthesis is
crucial!
References
http://data.princeton.edu/R/introducingR.pdf
http://www.cyclismo.org/tutorial/R/index.html
http://www.statmethods.net/index.html
www.math.ntu.edu.
tw/~hchen/Prediction/notes/R-programming.ppt
http://en.wikipedia.org/wiki/R_
(programming_language)