This is an introduction to atomic vectors (the basic building block) in R:
S3 vectors are slightly more complex (these include factors, dates, date-times, and difftimes), have multiple classes and attributes, and are an essential part of data analysis and visualization:
After loading or creating a data object in R, we need to be able to extract or manipulate these data. These exercises cover subsetting in R:
Nearly all of the data we’ll encounter in R will be rectangular (like a spreadsheet). In R, the two forms of rectangular are data.frames and tibbles.
ggplot2 is an excellent package for building data visualizations and graphs in R. These exercises introduce you to the grammar and syntax.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.