Session Ready
Exercise

Viewing metadata before importing

In some cases, it may be easier to get an idea of how readr plans to parse a dataset before you actually import it. When you see the planned column specification, you might decide to change the type of one or more columns, for example.

spec functions exist for .csv and .tsv files, and for other file types by using the delim argument in spec_delim().

In this final exercise, you'll use spec_csv to get a preview of how chickwts.csv would be imported.

Instructions
100 XP

Use spec_csv to determine how chickwts.csv will be parsed upon import. Simply print the specification to the console.