fars_read: Reading Fatality Analysis Reporting System data

Description Usage Arguments Details Value References See Also Examples

View source: R/fars_functions.R

Description

Read Fatality Analysis Reporting System (FARS) data from US National Highway Traffic Safety Administration.
fars_read reads a file defined by filename from the current working directory.

Usage

1
fars_read(filename)

Arguments

filename

(character) The file to be read.

Details

If fars_read cannot find the given filename in the current directory an error is thrown. It is recommended to use make_filename to create a filename for a given year according to the FARS filenaming scheme.
fars_read is a helper function for fars_read_years

Value

FIBS data is returned as tibble (see tbl_df)

References

US National Highway Traffic Safety Administration
(https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars)

See Also

make_filename, fars_read_years

Examples

1
2
3
4
5
## Not run: 
year <- 2014
df <- fars_read(make_filename(year))

## End(Not run)

philippB-on-git/fars documentation built on Dec. 22, 2021, 7:49 a.m.