fars_read: Print "FARS Read"

Description Usage Arguments Value References See Also Examples

View source: R/fars_functions.R

Description

fars_read reads data regarding fatal injuries suffered in motor vehicle accidents in the US, as reported by the Fatality Analysis Reporting System (FARS) of the US National Highway Traffic Safety Administration.

Usage

1
fars_read(filename)

Arguments

filename

A character string containing the name of the file to read. It is assumed to be a csv file (possibly compressed) as provided by FARS.

Value

The function returns a tibble data frame (class tbl_df) as defined ' by the dplyr package. If the file does not exist, the function returns ' a NULL value. '

References

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

See Also

make_filename, fars_read_years

Examples

1
df <- fars_read(make_filename(2014,dir=system.file("extdata",package="msdr3pam")))

mmiesch/msdr3pam documentation built on May 18, 2019, 9:14 p.m.