fars_read: Fars Data Import

Description Usage Arguments Details Value Examples

Description

This simple function serves as a basic check and data import for the several other functions provided in this package

Usage

1
fars_read(filename)

Arguments

filename

this parameter takes the expected name of the file that contains Fatality Analysis Reporting System data

Details

this function requires you to unzip the fars_data file in order to reach the .bz2 data files that is contained inside for each individual year. Working directory needs to contain the files that are included in data folder of fars_data .zip file

Value

This function return a data frame using dplyr package's tbl_df function and readr package's read_csv function

Examples

1
2
3
4
## Not run: 
fars_data(accident_2014.csv.bz2)

## End(Not run)

LapsedPacifistROU/FARSAssignment documentation built on May 7, 2019, 3:12 p.m.