fars_read: Read FARS Data.

Description Usage Arguments Details Value Examples

Description

This function reads data from the US National Highway Traffic Safety Administration's [Fatality Analysis Reporting System](https://www.nhtsa.gov/Data/Fatality- Analysis-Reporting-System-(FARS)), given a filename for the data. It returns a tibble of the data. For this function to work properly, a filename pointing to an existing file must be given.

Usage

1
fars_read(filename)

Arguments

filename

Name of file that contains FARS data

Details

fars_read reads FARS data in R envirnoment.

Value

This function returns a data frame containing the FARS data. If an incorrect filename is entered the function will stop and print 'does not exist' message.

Examples

1
2
3
4
## Not run: 
fars_read(accident_2014.csv.bz2)

## End(Not run)

sumitpratap/week4 documentation built on May 17, 2019, 8:45 p.m.