fars_read: Import FARS ("Fatality Analysis Reporting System") data

Description Usage Arguments Value Note Examples

Description

This is a function for importing a single FARS data file into R for analysis.

Usage

1
fars_read(filename)

Arguments

filename

a valid filepath to data stored in comma separated value form

Value

This function returns a data frame containing FARS data

Note

The function will stop if the filename parameter does not refer to a valid file. If the file is not in CSV form, the function will attempt to parse it anyway, but will return parsing failure warnings. The function should not be used for non-CSV files, as it will likely not properly import the data.

Examples

1
## Not run: fars_read("data/accident_2013.csv.bz2")

expo45/wk4project documentation built on May 16, 2019, 9:56 a.m.