In this section, we're going to explore the tidyverse package readr. Readr allows us to import "rectangular data" – in other words, data stored in formats like CSV (comma-separated values), TSV (tab-separated values), and FWF (fixed-width format).
To understand how to work with readr, let's imagine we're working for a city department that receives reports from various other departments. This data is coming from several different locations and in different formats. And it almost certainly contains some errors.
How can we keep the chaos under control? We will learn how to manage those errors, and we'll leave out different reading functions, such as
read_fwf() – they work the same way as
We need to use something that will read all the reports and keep them in R: the