November 2018
Beginner to intermediate
420 pages
10h 4m
English
The last package that deserves mention here is tidyr. The package provides a few helpful functions to convert wide tables into long and vice versa. Consequently, it can be used effectively for creating long tables and pivoting values based on column data.
The gather function allows the creation of key-value pairs by flattening the columns into a key column with the corresponding measurements in a value column.
Read now
Unlock full access