- different R objects (e.g., data vs. functions),
- different types of data (e.g., Boolean values of type logical, numeric objects of type double or integer, and text objects of type character), and
- different shapes of data (e.g., scalars, vectors, and various types of tables).
We then showed how to create and change objects in R (by assignment),
how to create vectors and tables (by using the
and how to access and change elements of vectors and tables (by indexing/subsetting).
And in the process of creating and checking R objects, we used a variety of functions to check, compare, or manipulate data objects.
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
YaRrr! The Pirate’s Guide to R (Phillips, 2018) is an introduction that approaches R in a funny and entertaining fashion. (See Rpository.com/learnR/ for a course with corresponding exercises and solutions.)
Advanced R (2nd edition) (Wickham, 2019a) is an valuable source for R users who want to deepen their programming skills and understanding of the language. The following chapters cover topics relevant to basic R concepts and commands in much more detail:
Here are some pointers to related RStudio cheatsheets:
- Base R:
- Advanced R:
Other helpful links that do not fit into the above categories include:
R-bloggers collects blog posts on R.
Quick-R (by Robert Kabacoff) is a popular website on R programming.
R-exercises provides categorized sets of exercises to help people developing their R programming skills.
What’s next? Provide a sneak preview of the following topics and chapters.