- different types of R objects (e.g., data vs. functions),
- different types of data (e.g., logical, numeric, and character data), and
- different data structures and shapes of data (e.g., linear vs. rectangular vectors or lists).
In R, a range of different objects are created and changed by applying functions (e.g., for assignment, arithmetic, and many other operations). Thus, the following chapters gravitate around creating more objects and using a large variety of functions to do things with them.
There is no shortage of introductory books and scripts on R, but it is helpful to look for one that fits your interests and level of expertise.
Books and online scripts
As most introductions of R focus on vectors and data frames, they provide only scarce information on other data structures. Some noteworthy exceptions (with dedicated chapters or sections on lists and factors) are:
Here are some pointers to related RStudio cheatsheets:
- Base R:
- Advanced R:
In Chapter 4, we will learn to use R functions for visualizing data.