Data Mining

Home / DATASCIENCE / Data Mining

Data Science

R Reference Card

Here is my own R Reference card or cheatsheet which i ve been using in my MSc and other data science studies.

 

Getting help and info

help(topic)  documentation on topic
?topic same as above; special chars need quotes: for example ?’&&’
help.search(ʺtopicʺ) search the help system; same as ??topic
apropos(ʺtopicʺ) the names of all objects in the search list matching the regular expression “topic”
help.start() start the HTML version of help
summary(x) generic function to give a “summary” of x, often a statistical one
str(x) display the internal structure of an R object
ls() show objects in the search path; specify pat=”pat” to search on a pattern
ls.str() str for each variable in the search path
dir() show files in the current directory
methods(x) shows S3 methods of x
methods(class=class(x)) lists all the methods to handle objects of class x
findFn() searches a database of help packages for functions and returns a data.frame (sos)

 

 

Operators

<‐ Left assignment, binary
‐> Right assignment, binary
= Left assignment, […]

Go to Top