fars_read: Read one year dataset

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This is a function that read the dataset in the year you choose. The data are from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System, which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes

Usage

1
fars_read(filename)

Arguments

filename

A filename generated by the make_filename function.

Value

This function returns a dataframe in the year you choose.

Examples

1
2
3
## Not run: filename=make_filename(2013)
## Not run: df=fars_read(filename)
## Not run: head(df)

Guan-Pujun/fars documentation built on Aug. 10, 2020, 12:43 a.m.