This is a draft cheat sheet. It is a work in progress and is not finished yet.
Syntax
Assignment |
y <- y |
Comment |
# |
Logical operator |
==, !=, <, >, |, & |
Mathematical operators |
+, -, /, *, ^ |
Help
|
help(topic) |
|
?topic |
Search the help system |
help.search("topic") |
Names of all objects in the search list matching the regular expression ”topic” |
apropos("topic") |
HTML version of help |
help.start() |
Internal strructure of an R object |
str(a) |
Show objects in the search path; specify pat="pat" to search on a pattern |
ls() |
str() for each variable in the search path |
ls.str() |
Shows S3 methods of an object |
methods(object) |
Lists all the methods to handle objects of class a |
methods(class=class(a)) |
Coercion and verification
as.numeric(), as.character(), as.data.frame(), ... |
is.numeric(), is.character(), is.data.frame(), ... |
|
|
_________________________________
|
|
|