fars_read: fars_read A funtion that checks if the file exists and...

Description Usage Arguments Value Examples

View source: R/fars_function.R

Description

fars_read A funtion that checks if the file exists and returns the content as tbl_df. No need to be exported as it's mainly used inside the package

Usage

1
fars_read(filename)

Arguments

filename

A character containing the filename built with the make_filename function

Value

returns a dataframe (more exactly a tbl_df from dplyr) with the information from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System. If the filename doesn't exists it returs an error.

Examples

1
2
3
4
5
## Not run: 
fars_read('accident_2015.csv.bz2')
fars_read(make_filename(2015))

## End(Not run)

fdelzompo/BuildingRPackage documentation built on May 14, 2019, 9:42 a.m.