fars_read: Read source data file

Description Usage Arguments Details Value Examples

Description

Read source data file

Usage

1
fars_read(filename)

Arguments

filename

a string and, optionally a path, representing a CSV file name

Details

This function looks for a CSV file called filename and checks whether it exists or not, if found it loads the data using readr::read.csv and converts it to a dyplr dataframe using dyplr::tbl_df. If no data file with that name exists, the funtion returns an error.

Value

a dataframe

Examples

1
2
3
## Not run: 
fars_read("accident_2013.csv")
## End(Not run)

barnabe/building_an_r_package documentation built on May 11, 2019, 6:23 p.m.