Coding Basics

R as a Calculator

1000 / 10
## [1] 100
x <- 1000 / 10
# x

Assignment Symbol

What’s in a Name?

Calling Functions

Use of TAB

seq(from = 1, to = 10, by = 1)
##  [1]  1  2  3  4  5  6  7  8  9 10

Continuation Character, +

seq(from = 1, to = 10)
##  [1]  1  2  3  4  5  6  7  8  9 10

Printing to Screen

y <- seq(from = 1, to = 10)
y
##  [1]  1  2  3  4  5  6  7  8  9 10