Exercises 4 - Reading Data

Files corresponding to Short Course: Introduction to Data Science Using R

Exercises 4 - Reading Data

4.1 Read data contained in an R package.

  1. Load the dcData and tidyverse packages. Use the

4.2 Read a .csv file from the web

The file “BabyNameSupp.csv” includes a few years of more recent data to augment the BabyNames data. The file can be downloaded straight to R from the link here:

https://github.com/jbpost2/Basics-of-R-for-Data-Science-and-Statistics/raw/master/datasets/BabyNamesSupp.csv

Read this file in using read_csv() from the readr package. Save the data as an object called BabyNamesSupp.

Note: Reading the data will produce a warning message! Read the warning message carefully; what seems to have gone wrong?