fars_read: Read Fatality Analysis Reporting System data

Description Usage Arguments Value Examples

Description

fars_read reads in Fatality Analysis Reporting System (FARS) data for a given filename, if the file exists.

Usage

1
fars_read(filename, path = "inst/extdata")

Arguments

filename

The name of the FARS data file to read.

path

The path to the FARS data file to read. The default is the path to the three supplied raw data files.

Value

A table of FARS data.

Examples

1
2
3
4
## Not run: fars_read(filename = "accident_2013.csv.bz2")
## Not run: fars_read(filename = "accident_2014.csv.bz2"))
## Not run: fars_read(filename = "accident_2015.csv.bz2")
## Not run: fars_read(filename = "file_does_not_exist.csv", path = "bad/path") # Results in an error

Alice-MacQueen/farsr documentation built on May 13, 2019, 11:22 a.m.