fars_read: Reading Fatality Analysis Reporting System data

Description Usage Arguments Details Value Examples

Description

This function reads a FARS dataset containig in csv file given in argument. If the file doesn't exist the function stops and prints an arror message saying that the data doesn't exist. If the data exist, the functions reads it and create a data frame from it.

Usage

1
fars_read(filename)

Arguments

filename

The name of the csv.bz2 file which the data are read from.

Details

If the format of the file is not csv.bz2 or csv, the function returns an error message saying "invalid file argument"

Value

a data frame tbl

Examples

1
acc2013 <- fars_read ("accident_2013.csv.bz2")

cdv04/MyPckg documentation built on May 13, 2019, 2:48 p.m.