fars_read: fars_read

Description Usage Arguments Value References Examples

View source: R/fars_functions_LCP.R

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
7
8
9
## Not run: 
fars_read("accident_2015.csv.bz2")

## End(Not run)

## Not run: 
fars_read()

## End(Not run)

Darwinita/FARSpackageLCP documentation built on May 27, 2019, 4:06 a.m.