####
→ comments
2+2
→ addition operation
-
*
/
Creating Variables
x <- 2
y = 4
==
is the logical operator, =
**is the assignment operator3 -> z
this_is_my.NEW.variable123 = w
b = "buffalo"
a = 'apple'
truth = TRUE
missing = NA
missing + 1 -> NA
Logical Operators
t > 9000
2 <= 2
z != 5
|
or operator&
and operatorVectors
x = c(1,2,3,4,5,6,7,8)
19:42
generates a similar output (handy for loops)