fars_read: Read and Print data

Description Usage Arguments Details Value Note Examples

View source: R/Cousera4.R

Description

Read public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes from the US National Highway Traffic Safety Administration as a dataframe and print as a tibble

Usage

1
fars_read(filename)

Arguments

filename

Name of the file containing the data. Use the make_filename function to create a filename for a specific year.

Details

Reads .csv data with progress = FALSE. Does not print out any warning messages.

Value

Dataframe. As a side effect, this function also prints data as a tibble.

Note

Generates an error if the file with a specified name does not exist in the working directory

Examples

1
2
## Not run: fars_read("accident_2013.csv.bz2")
## Not run: fars_read(make_filename(2014))

ulicheva/Coursera4 documentation built on May 3, 2019, 2:24 p.m.