Lectures and exercises for statistics and programming in R