Overview of different data types and useful summary functions for working with them. Strings and dates covered in more detail in future chapters.
Need to mention `typeof()` vs. `class()` mostly in context of how date/times and factors are built on top of simpler structures.
### Logical
When used with numeric functions, `TRUE` is converted to 1 and `FALSE` to 0. This makes `sum()` and `mean()` particularly useful: `sum(x)` gives the number of `TRUE`s in `x`, and `mean(x)` gives the proportion.