fars_read: 'fars_read' - a function to read in a Fatality Analysis...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

fars_read - a function to read in a Fatality Analysis Reporting System data file. The expected format is CSV.

Usage

1
fars_read(filename)

Arguments

filename

an object of class character.The name of the file to be read.

Value

Returns a data frame tibble containing the file contents. If the file does not exist, the function returns an error.

Examples

1
2
3
4
5
## Not run: 
fars_read('accident_2013.csv.bz2')
data <- fars_read('accident_2017.csv.bz2')

## End(Not run)

12mre1/fars documentation built on Oct. 30, 2019, 4:02 a.m.