Show Menu
Cheatography

R Cheat Sheet (DRAFT) by

Beginner's Info to R Language

This is a draft cheat sheet. It is a work in progress and is not finished yet.

R Import Data

read.c­sv(­fil­e="s.cs­v", head=TRUE, sep =",")
file -> filename; head -> labels in first row; sep -> comma separated
summar­y(d­ata­var­iable)
datava­r$c­olumn1
access individual column
names(­dat­avar)
column names of data
attrib­ute­s(d­atavar)
lists column names, variable class, and row names
read.f­wf(...)
read fixed with files

R Basic Variable Commands

a <- 3
assignment
ls()
list variables in current session
rm(var)
remove specific var