Code and Computing Resources
The R project for Statistical Computing
R is a free software environment for statistical computing and graphics. It compiles and runs on a wide variety of UNIX platforms, Windows and MacOS. To download R, please choose your preferred CRAN mirror at http://cran.r-project.org/mirrors.html . I do most of my coding projects in R.
I've developed a Google custom search engine that searches R-related sites. If you are interested in helping make this search better, let me know. Check that out here. or just search:
A presentation Natalia Norden and I gave at the 2008 UConn EEB Graduate Research Symposium on what R can do for you.
Introduction to R
A short course in R (EEB 5894 section 3) Fall 2008
Adam Wilson and Natalia Norden
Course Resources
The "R for Beginners" book: http://cran.r-project.org/doc/contrib/Paradis-rdebuts_en.pdf
The R "Cheat Sheet" (a great resource to print out and keep near the computer) http://cran.r-project.org/doc/contrib/Short-refcard.pdf
Class 1
- R Overview
- Importing/exporting
- Data Types
Class 2
- Data Manipulation
- Intro to graphics
- Intro to statistics
Class 3
- Data Manipulation continued (tapply, table, for, if)
- Jenica Allen's example
Class 4
- Intro to modeling
- Overview of packages
- Linear models - lm() and anova()
- Examples by Suegene and Susan
Class 5
- Advanced programming
- Writing functions
- More about loops
- You can get the files we used at the following links
Class 6
- Spatial data analysis
- sp class
- importing spatial data
- Example by Trina (download data here).
R Examples
Below are some examples of code I've been working with. Let me know if you find anything useful.
A simple Bayesian linear regression using the UMacs package: Umacs.R
Code to produce a "polyplot":
that is useful for timeseries display: polyplot.R