code
ref
Design Systems
NEW
CodeRef Start
NEW
Cheat Sheets & Reference
Tools & Studio
Search…
Ctrl K
Cheat Sheets
/
Languages
/
R
R
Base R for help, I/O, data structures, apply functions, strings, statistics and plotting.
Official reference ↗
Help & Session
Help
help()
help.search()
example()
apropos()
vignette()
args()
Session
str()
summary()
class()
ls()
rm()
getwd()
setwd()
library()
require()
sessionInfo()
Packages
install.packages()
update.packages()
installed.packages()
Input / Output
Files
read.csv()
read.table()
write.csv()
write.table()
Base
readRDS()
saveRDS()
load()
save()
readLines()
writeLines()
scan()
print()
cat()
sink()
file.exists()
list.files()
source()
Data Creation
c()
vector()
seq()
rep()
matrix()
array()
list()
data.frame()
factor()
numeric()
character()
cbind()
rbind()
as.numeric()
as.character()
Data Manipulation
Subset & Sort
subset()
merge()
order()
sort()
unique()
table()
which()
ifelse()
split()
do.call()
head()
tail()
Apply Family
apply()
lapply()
sapply()
vapply()
mapply()
tapply()
Reduce()
Filter()
Map()
Aggregate
aggregate()
Strings
paste()
paste0()
sprintf()
nchar()
substr()
gsub()
sub()
grepl()
regmatches()
strsplit()
toupper()
tolower()
trimws()
format()
Statistics
Descriptive
mean()
stats
median()
sd()
var()
quantile()
cor()
lm()
glm()
t.test()
chisq.test()
anova()
predict()
rnorm()
runif()
Random
sample()
set.seed()
Plotting
graphics
plot()
hist()
boxplot()
barplot()
lines()
points()
abline()
legend()
par()
Devices
pdf()
png()
dev.off()
Manuals
An Introduction to R
R Language Definition
R Data Import/Export
Writing R Extensions