fars_read: fars_read

Description Usage Arguments Value References Examples

Description

A read data file function.

fars_read This function reads a filename from the Fatality Analysis Reporting System (FARS) into a dplyr version of an R data frame. It stops if the file does not exist.

Usage

1
fars_read(filename)

Arguments

filename

Is a character string giving the file name of the input data file.

Value

If a file name is provided this functions returns a dplyr version of an R data frame with the data contained in filename. Otherwise it stops.

References

https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars

Examples

1
2
3
4
5
6
fars_read("accident_2015.csv.bz2")

## Not run: 
fars_read()

## End(Not run)

Darwinita/BuildinganRPackageLCP documentation built on May 31, 2019, 1:13 p.m.