fars_read: Read FARS data

Description Usage Arguments Value Note Examples

Description

This function reads data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System into R. It takes a filename as an argument.

Usage

1
fars_read(filename)

Arguments

filename

A character string indicating the name of the file to be read

Value

This function returns a dataframe of the FARS data.

Note

The function suppressess messages generated during the data read process and throws an error if the filename does not exist in the working directory.

Examples

1
2
fars_read(system.file("extdata", "accident_2013.csv.bz2", package = "FARS"))
## Not run: fars_read("does_not_exist.csv")

samthomasRLA/FARS documentation built on May 28, 2019, 5:40 p.m.