Recommended Textbooks
Below is the recommendation for reference. All the materials are freely available online.
Textbooks
R for Data Science 2nd edition and Solutions to Exercises
This book mainly uses the dplyr package, which we do not cover in this course (Instead, we use data.table package.) But still, some chapters are highly useful for learning the basics of R. Specifically, take a look at the following chapters:
- Chapter 2 Workflow: basics
- Chapter 6 Workflow: scripts and projects
- Chapter 25 Functions
- Chapter 26 Iteration
- Chapter 27 A field guide to base R
I highly recommend this as an introduction to data.table syntax.
ggplot2: Elegant Graphics for Data Analysis (3e)
Modern Data Visualization with R by Robert Kabacoff
The Programming for Econometrics class uses this book.