fars_read: Reads a FARS file

Description Usage Arguments Details Value Examples

Description

Reads data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System and stores it into a table.

Usage

1
fars_read(filename)

Arguments

filename

Name of the FARS file to be read. It may be a plain or a compressed file.

Details

It returns and error in case the file does not exist

Value

A tbl_df with the information in the file

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Read data from 2013, in plain csv format
a <- fars_read('accident_2013.csv')

# Read data from 2014, with bz2-compressed csv format
b <- fars_read('accident_2014.csv.bz2')

## End(Not run)

raggaraluz/master_sw_dev_c3 documentation built on May 21, 2019, 9:22 a.m.