Introduction to R

July 15, 2010, 3121 Snedecor

Chris Bruno,
Dason Kurkiewicz,
Adam Loy,

The Introduction to R workshops will teach you how to get started with the statistical software R. The course will be data centric, with lots of different data sets that illustrate examples of the different techniques used for different problems.

The course will be a mix of instruction and follow-up exercises. It will be held in a computer lab but you are encouraged to bring your own laptops, with software already loaded. A list of software will be available at this site several days prior to the workshop.


$50 covers the whole day, to be paid by check (make check payable to Iowa State University) or cash with Marlene Tjernagel (1121G Snedecor)

In order to qualify for this course you will need to have a valid ISU card. Send email to one of the instructors to register.

Lectures and timetable

Date Notes Lecture and Resources
08:00 – 9:00 Setting Up This will make sure that everybody's system is up and running
09:00 – 10:00 Basic Introduction First taste of R: good working habits, language and grammar, generally useful commands
R Reference Card
10:00 – 10:45 Data Management Reading data in different formats, checking data, indexing and subsetting
Airfares.csv airfare.r
10:45 – 11:00 coffee break
11:00 – 12:00 Basic Graphics Intro to the ggplot2 package, making common statistical plots, basic facetting and colors, graphics-class.r, graphics-complete.r
12:00 – 01:00 lunch break
01:00 – 02:00 Basic Models Regression models: fitting and diagnosing models, 4-models.r
02:00 – 02:45 Programming in R Iterations, conditions, loops and functions; simulations, forloop.r, ifcond.r, whileloop.r States start with M Deck of Cards Sim
02:45 – 03:00 coffee break
03:00 – 04:00 Advanced Data Manipulations Intro to plyr package and the ..ply functions, plyr-class.r, nasa.csv

Give Feedback

We very much appreciate any feedback you can give us. You can find a form here:

Learning outcomes

After the end of the this one course, we expect you to be able to do the following:

Getting Ready on your own machine

You can bring your own laptop and work on it, if you like to. In order to keep up with everybody else, we're asking that you start installing the following pieces of software ahead of coming to the workshop:

Useful links

Recommended Reading: