concept readr in category R

appears as: readr
Exploring Data with R

This is an excerpt from Manning's book Exploring Data with R.

We need to install the tidyverse package, which installs all of the Tidyverse packages (plus numerous other packages that are dependencies), and we can use install.packages("tidyverse") in the R console. This installs the tidyverse meta-package and all of the Tidyverse packages like dplyr, ggplot2, readr, etc.

5.2       Using readr to Import Data from CSV Files

Now that we have learned about how to set up our projects, we will now import data from CSV (comma-separated value) files. CSVs are quite commonplace as method for storing tabular data in plain text. Many software programs that deal with tabular data can often export such data to CSV. While the CSV ‘format’ isn’t rigorously specified (there really is a lot of variation), we commonly find that (1) each line is a separate record, (2) the records are divided into fields (separated by delimiters such as the comma, but sometimes by spaces or tab characters), (3) there is the same number of fields per record, and (4) there is often a header line that defines the column names. While such variations in CSV formatting can’t really be avoided, the Tidyverse readr package has many options to successfully deal with any such potential issues.