Readr
Summary

Instruction

As you probably expected, we got a tibble! Any strings in the data were not converted into factors (as they would have been in base R). Winters University has given us a dataset with a good format.

Let's go to the next report: a list of companies operating in our city. The data includes company names, addresses, and the number of employees in each company.

Exercise

Read the data in data/companies.csv and assign it to the companies variable. Use read_csv(). It's not immediately evident, but there are some problems with the data that we'll investigate later in this section.

Stuck? Here's a hint!

Type:

companies <- read_csv("data/companies.csv")