UP: TOC
This is a Cheat Sheet for the R Language. R is the language for big data analysis.
> 2+2 [1] 4
The result, is 4. It's printed on the console right after hitting enter.
Let's multiply 8 times 7 (* is the multiplication operator).
> 8*7 [1] 56
Here are some logical expressions. Logical expression either return TRUE or FALSE
> 3==3 [1] TRUE > 3 > 4 [1] FALSE
T is a shorthand for TRUE and F for FALSE
> F == FALSE [1] TRUE
Variables are "containers" that hold a value. The value 42 is assigned to the variable "x".
> x <- 42
Print out the variable x
x [1] 42
adding numbers
> sum(1,3,5) [1] 9
help (sum) example (sqrt)
...
list.files() source("Test1.R")UP: TOC