fars_read: A file read function

Description Usage Arguments Value Examples

View source: R/fars_function.R

Description

fars_read function reads your data file downloaded from the Fatality Analysis Reporting System. If file you are trying to read doesn't exist on the fars database then you will get a message filename does not exist. Any messages associated with downloading the file will be suppressed. Data will be read using the read_csv function from the readr package. Dataframe will be stored in tbl_df format using the dplyr package

Usage

1
fars_read(filename)

Arguments

filename

Path to the file containing data.

Value

A tibble with data.

Examples

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

## End(Not run)

Nilesh1978/fedtrafat documentation built on May 21, 2019, 7:53 a.m.