Examples and exercises from the book, The Art of R Programming