fars_read: Load csv data into R in data frame tbl format

Description Usage Arguments Value Examples

Description

This function uses the read_csv function from the readr package to load a given .csv file into R, and then converts the imported data into the data frame tbl structure. If the file does not exist, the function will stop and return an error.

Usage

1
fars_read(filename)

Arguments

filename

a character string for the file name input of the .csv file

Value

this function either returns a data frame tbl of the .csv data, or an error, if a file for the given year does not exist

Examples

1
2
3
4
5
## Not run: 
fars_read(filename="accident_2013.csv.bz2")
fars_read("accident_2014.csv.bz2")

## End(Not run)

schwarja209/rfars documentation built on May 29, 2019, 9:32 a.m.