fars_read: Read a FARS data file

Description Usage Arguments Value Examples

Description

The function accepts the filename (using filename parameter) of the file containing FARS data for a year to process, checks if the file exists, and returns its data. For more information about FARS data, see Fatality Analysis Reporting System.

Usage

1
fars_read(filename)

Arguments

filename

A name of the file to read (either a single string or a raw vector). Please use the make_filename function to get a correct file name.

Value

Returns a tibble containing the FARS data loaded from the source file (or the several source files).

Examples

1
## Not run: data2013 <- fars_read("accident_2013.csv.bz2")

Valentin-Konoshenko/MyFirstRPackage documentation built on May 8, 2019, 6:44 p.m.