fars_read: Reads csv file with FARS data

Description Usage Arguments Value See Also Examples

View source: R/fars_function.R

Description

fars_read reads a csv file and writes an error when the file does not exist

Usage

1
fars_read(filename)

Arguments

filename

A character string. Path to the file which should be read.

Value

If the filepath exists, then the output will be a tibble containing the data of the csv file filename. Otherwise it will throw an error message.

See Also

read_csv

tbl_df

Examples

1
2
3
4
## Not run: 
data <- fars_read("./data/accident_2013.csv.bz2")

## End(Not run)

Anirie/TestPackage documentation built on Oct. 30, 2019, 4:54 a.m.