fars_read: Read FARS Data

Description Usage Arguments Value Note References Examples

Description

Reads a Fatality Analysis Reporting System (FARS) file in csv format and creates a dplyr tbl_df from it.

Usage

1
fars_read(filename)

Arguments

filename

A character string giving the name of the file to read.

Value

This function returns a dplyr::tbl_df of the file.

Note

If the file or permission to it does not exist, an error is produced.

References

https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars

Examples

1
2
test_data <- system.file("extdata", "accident_2014.csv.bz2", package = "fars")
fars_read(filename=test_data)

kaquilino/fars documentation built on May 20, 2019, 7:20 a.m.