Professional Documents
Culture Documents
R Program - Preliminaries
R Program - Preliminaries
All images used in this presentation are property of respective image holders.
Images are used only for indicative purpose and does not carry any other
meaning. 2
Why R?
data manipulation, calculation and graphical display
data analysis
Graphical facilities for data analysis
Simple and effective programming language having conditionals,
loops, user defined functions and input and output facilities
3
Case Sensitivity and Expression
Elementary commands consist of either expressions or assignments.
EXAMPLE
> XA > 1+2+3
> (11 * 8) + 12
An assignment also evaluates an
expression and passes the value
to a variable but the result is not
automatically printed.
Features of R
Commands are separated either by a semi-colon (‘;’), or by a
newline.
Elementary commands can be grouped together into one
compound expression by braces (‘{’ and ‘}’).
WHY
> getwd()
> source(‘P1.r’)
7
Q&A