Coding basics

R as a calculator

3+2*3
## [1] 9

assignment symbol

x <- 3+2*3

What’s in a name?

underscore_as_spaceOrUseCapitals.or.periods <- 1+1

Calling functions

Use of TAB

seq(1, 20, by = 2)
##  [1]  1  3  5  7  9 11 13 15 17 19

continuation character, +

Printing to screen

y <- seq(5, 50, by = 5)
y
##  [1]  5 10 15 20 25 30 35 40 45 50