fars_read: Read in NHTSA FARS dataset CSV file as a data frame table...

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

This is a function that takes a filename of a CSV as an argument and reads it in as a data frame table. Successful execution will result in a data frame table object containing the CSV data.

Usage

1
fars_read(filename)

Arguments

filename

A string filename that corresponds to the CSV to be read in

Details

It will first check if the filename is valid and print a warning and stop if it is not. The function will generate an error for invalid CSV inputs.

Value

This function returns a tbl_df object

Examples

1
2
3
4
## Not run: 
fars_read('accident_2013.csv.bz2')

## End(Not run)

mikemcclendon/farsfunctions documentation built on May 5, 2019, 5:53 p.m.