git clone
git add *
git commit -m ".."
git push
git log --onelinegit checkout cbe1de6git checkout master# Start a comment with a "#" symbol# Assign the value 2 to your variable x
x <- 2# Assign the string "hello" to your variable x
x <- "hello"
x <- 'hello' # these do the same thingx <- c(2,5,1,3)x[1] # the number 2x <- c(2,5,1,3) # 2,5,1,3# Generic
help(function_name)
# Example
help(c)# Or (generic)
?function_name
# Example
?c# Generic
install.packages('package-name')
# Example
install.packages('stringr')# Generic
library(package-name)
# Example
library(stringr)