2008-12-09

An R Cheatsheet

R is seriously cool. Unfortunately for me, I only use it about once a year, so I can never remember how to do anything; hence the cheatsheet.

Read a CSV file into a variable

users_usergroups <- read.csv(file="dev/users-per-group.csv", sep=",", head=TRUE)
Generate a boxplot

boxplot(users_usergroups$NUM_OF_USERS)
Generate a histogram

hist(users_usergroups$NUM_OF_USERS)

Back to flipping out...

blog comments powered by Disqus