Michael Lachmann
  back home
  Research Interests
  Research Areas

Group selection Course




(13/2) Course done! Lecture notes 9 are below.
(11/2) Solution to excercise 3 below.
(11/2) Links to documentation about ROracle and SQL.
(11/2) Lecture note 8 are below.
(3/2) A nice interface: Function finder added in documentation.

R course - Michael Lachmann

R is a programming language good for statistics, similar to S-plus.

The planned timetable:

Week 1: R basics
Week 2: Statistical tests and bootstrapping using R
Week 3: Bioconductor and database access

Lecture notes and exercises

Lecture 1
: Basics of R, TeXmacs, statistics, and bootstrapping.
notes: pdf  TeXmacs
exercise 1(right click to save as)
Solution: TeXmacs pdf
The exercise will ask you to read pages 1-8 from "simpleR - Using R for Introductory Statistics".

Lecture 2: Matrices
notes: pdf TeXmacs (right click to save as)
I asked you to read pages 11-29 from the book "Statistical Computing" by Michael J. Crawley.

Lecture 3: Programing
notes: pdf TeXmacs (right click to save as)
exercise 2, supplementary material: speeding.csv
Solution: TeXmacs pdf

Lecture 4: Statistical tests
notes: pdf TeXmacs (right click to save as)
I asked you to read pages 131-167 from "Statistical Computing". The following zip file contains the data that is used. You'll need to read it into R. data.zip

Lecture 5: Plotting and lines
notes: pdf TeXmacs (right click to save as)

Lecture 6: Linear models and analysis of variance
notes: pdf TeXmacs (right click to save as)
exercise3. You will need data files from data.zip, and strange.txt
Solution: TeXmacs

Lecture 7: Bootstrap
notes: pdf TeXmacs (right click to save as)

Lecture 8: Access to databases
notes: pdf TeXmacs (right click to save as)

Lecture 9: Bioconductor
notes: pdf TeXmacs (right click to save as)

R Documentation:

"simpleR - Using R for Introductory Statistics" by John Verzani
This is a very nice introduction to R. Pages 1-18 cover most of what we'll learn in the first class.

"R for Beginners" by Emmanuel Paradis
This is a good introduction to the internals of R, more from a programmers direction. I will go some into the internals of R, but if you want to learn more about how to multiply matrices, more about how to read files, etc., read this.

"Using R for Data Analysis and Graphics" by J. H. Maindonald
This document mainly talks about doing graphics in R. It has a nice introduction to the windows interface.

Function finder - a web page that groups functions in R by what they do.

R Data Import/Export - explains how to export data from R to files, and to different database formats. The DBI interface on page 14 is what ROracle also uses, so that section explains some of what we learned in class.

The ROracle Package - explains more about interfacing an oracle database from R. It is fairly technical and is a manual of the different functions rather than a tutorial.

barney is our internal server, which points to some SQL documentation.


Main R Project page
Texmacs - the interface that we'll use in the course