Skip to content

Instantly share code, notes, and snippets.

@daksis
Created May 23, 2010 13:56
Show Gist options
  • Save daksis/410952 to your computer and use it in GitHub Desktop.
Save daksis/410952 to your computer and use it in GitHub Desktop.
Getting Started with R.
I'll update this as I keep adding information.
Just to play around with R. There's a great PDF built into the environment
Download R: http://www.r-project.org/ Install the R Package
Once you fire up the R Shell (installed in /Applications by default)
At the prompt:
# Pick a mirror and install it
> install.packages("HSAUR")
# Check out book
> vignette(package = "HSAUR")
You'll be greeted by a list of "mini books" on analyzing data
---8<------8<------8<------8<---
Vignettes in package ‘HSAUR’:
Ch_analysing_longitudinal_dataI
Chapter Analysing Longitudinal Data I (source,
pdf)
Ch_analysing_longitudinal_dataII
Chapter Analysing Longitudinal Data II (source,
pdf)
....
---8<------8<------8<------8<---
# This produces you a PDF that takes you through a complete data analysis process
# Another option - just explore the data sets
# Installing RSRuby
# Need to set the $R_HOME variable, mine is
~ %echo $R_HOME #=> /Library/Frameworks/R.framework/Resources
~ %gem install rsruby -- --with-R-dir=$R_HOME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment