From here: http://adv-r.had.co.nz/Vocabulary.html
# The first functions to learn
?
str
# Important operators and assignment
%in%, match
=, <-, <<-
$, [, [[, head, tail, subset
with
assign, get
# Comparison
all.equal, identical!=, ==, >, >=, <, <=
is.na, complete.cases
is.finite
# Basic math
*, +, -, /, ^, %%, %/%
abs, sign
acos, asin, atan, atan2
sin, cos, tan
ceiling, floor, round, trunc, signif
exp, log, log10, log2, sqrt
max, min, prod, sum
cummax, cummin, cumprod, cumsum, diff
pmax, pmin
range
mean, median, cor, sd, var
rle
# Functions to do with functions
function
missing
on.exit
return, invisible
# Logical & sets
&, |, !, xor
all, any
intersect, union, setdiff, setequal
which
# Vectors and matrices
c, matrix# automatic coercion rules character > numeric > logical
length, dim, ncol, nrow
cbind, rbind
names, colnames, rownames
t
diag
sweep
as.matrix, data.matrix
# Making vectors
c
rep, rep_len
seq, seq_len, seq_along
rev
sample
choose, factorial, combn/as).(character/numeric/logical/...)
(is
# Lists & data.frames
list, unlist
data.frame, as.data.frame
split
expand.grid
# Control flow
if, &&, || (short circuiting)
for, while
next, break
switch
ifelse
# Apply & friends
lapply, sapply, vapply
apply
tapply replicate
# Date time
ISOdate, ISOdatetime, strftime, strptime, date
difftime
julian, months, quarters, weekdayslibrary(lubridate)
# Character manipulation
grep, agrep
gsub
strsplit
chartr
nchar
tolower, toupper
substr
paste
trimwslibrary(stringr)
# Factors
factor, levels, nlevels
reorder, relevel
cut, findInterval
interactionoptions(stringsAsFactors = FALSE)
# Array manipulation
array
dim
dimnames
apermlibrary(abind)
# Ordering and tabulating
duplicated, unique
merge
order, rank, quantile
sort
table, ftable
# Linear models
fitted, predict, resid, rstandard
lm, glm
hat, influence.measures
logLik, df, deviance~, I
formula,
anova, coef, confint, vcov
contrasts
# Miscellaneous tests
apropos("\\.test$")
# Random variables
* (beta, binom, cauchy, chisq, exp, f, gamma, geom,
(q, p, d, r)
hyper, lnorm, logis, multinom, nbinom, norm, pois, signrank, t,
unif, weibull, wilcox, birthday, tukey)
# Matrix algebra
crossprod, tcrossprod
eigen, qr, svd%*%, %o%, outer
rcond solve
# Workspace
ls, exists, rm
getwd, setwd
q
source
install.packages, library, require
# Help
help, ?
help.search
apropos
RSiteSearch
citation
demo
example
vignette
# Debugging
traceback
browser
recoveroptions(error = )
stop, warning, message tryCatch, try
# Output
print, cat
message, warning
dput
format
sink, capture.output
sprintf
# Reading and writing data
data
count.fields
read.csv, write.csv
read.delim, write.delim
read.fwf
readLines, writeLines
readRDS, saveRDS
load, savelibrary(foreign)
# Files and directories
dir::file_ext
basename, dirname, tools
file.path
path.expand, normalizePath
file.choose
file.copy, file.create, file.remove, file.rename, dir.create
file.exists, file.info
tempdir, tempfilelibrary(downloader) download.file,