Technical requirements
We will use the dataset from Motor Trends Cars, widely known as mtcars. This is a good dataset for demonstration purposes.
All the code can be found in the book’s GitHub repository: https://github.com/PacktPublishing/Data-Wrangling-with-R/tree/main/Part1/Chapter3.
The libraries needed for the chapter are as follows:
library(datasets) library(tidyverse) # Dataset Load data("mtcars")