fars_read: fars_read(): Reads FARS (Fatality Analysis Reporting System)...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function accepts a filename and reads FARS file (csv format) and creates dataframe table. The function checks if the file exists and prints error msg when it doesn't.

Usage

1
fars_read(filename)

Arguments

filename

String type file name provided to be read into dataframe table

Value

This function returns a dplyr::tbl_df class object.

Examples

1
2
3
4
## Not run: 
fars_read(make_filename(2013))

## End(Not run)

staedi/fars documentation built on Sept. 3, 2020, 8:45 a.m.