git clone
git add *
git commit -m ".."
git push
git log --oneline
git checkout cbe1de6
git 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 thing
x <- c(2,5,1,3)
x[1] # the number 2
x <- 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)