R cheat sheet

source('file.R') Load R file
dates = as.Date(as.character(L), "%m/%d/%Y") Convert vector of ASCII dates into real ones
str(obj) Show structure of an object
is.na(x) find N/As in data
apply(my_matrix, 1, function(i) { commands; }) Anonymous functions
a <<- b; Force a as a global variable inside the function
missing(param) Check whether param wasn't specified when calling a function
stop Stop function execution
warning Print a warning
options(echo = FALSE); Suppress echoing of commands inside a script