Basic math operators
Main types
Main classes
<-
=
works too (but is frowned upon as it has other purposes).
in variable names except at the beginning[ ]
...
Ellipsis either used to allow infinite inputs, or passed to other functions?<function_name>
to see documentation> >= < <= == !=
%in%
& | !
install.packages("<package>")
library(<package>)
library
generally better than require
as it will stop execution if the package is not installed - require
only warnsdatasets
, utils
, grDevices
, graphics
, stats
, methods
help(package = "<package>")
to find out what a package containsvignette(package = "<package>")
vignette("<topic>", package = "<package>")
?<function>
??<keyword>
sd(c(4, 7, 22, 3, 19, 10, NA, 44, NA, 6))
to make it workData frames and lists