Transcription of R Reference Card
{{id}} {{{paragraph}}}
R Reference Cardby Tom Short, EPRI PEAC, 2004-11-07 Granted to the public domain. See for the source and latestversion. Includes material fromR for Beginnersby Emmanuel Paradis (withpermission).Getting helpMost R functions have online (topic)documentation ontopic? ("topic")search the help systemapropos("topic")the names of all objects in the search list matchingthe regular expression topic ()start the HTML version of helpstr(a)display the internal *str*ucture of an R objectsummary(a)gives a summary ofa, usually a statistical summary but it isgenericmeaning it has different operations for different classes ofals()show objects in the search path; specifypat="pat"to search on ()str() for each variable in the search pathdir()show files in the current directorymethods(a)shows S3 methods ofamethods(class=class(a))lists all the methods to handle objects ofclass aInput and outputload()load the datasets written withsavedata(x)loads specified data setslibrary(x)load add-on (file)reads a file in table format and creates a dataframe from it; the default separatorsep=""is
a comment; use skip=n to skip n lines before reading data; see the help for options on row naming, NA treatment, and others read.csv("filename",header=TRUE)id. but with defaults set for reading comma-delimited files read.delim("filename",header=TRUE)id. but with defaults set for reading tab-delimited files
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}