Notes from Hadley Wickham's book: Advanced R