!
NOT
c()
Combine
length()
Tells length
head()
first six lines
tail()
last few lines
names()
returns column names
rownames()
returns row names
colnames()
returns column
dim()
returns dimensions
sort()
sorts vector in ascending or descending order
nrow()
counts the number of rows
%in%
which A are in B (gives TRUE or FALSE)
-
excludes variable
unique()
gives unique values
str()
gives the structure
system()
run basic commands
summary()
returns summary
rep()
replicate of values
~
“as a function of”
seq()
sequence
installed.packages()
already installed paackages
install.packages
install packages in ‘’
sum()
adds
sqrt()
square root