http://duncanjg.wordpress.com/2008/11/21/draft-beginners-r-course/