fars_read: Read Fatality Analysis Reporting System (FARS) Data

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This is a function that read data from file referenced by filename into a tbl_df class object. It will give an error and exist if the file filename does not exist in the working directory. The source data is from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS): https://www.nhtsa.gov/research-data/fatality-analysis-reporting-system-fars

Usage

1
fars_read(filename)

Arguments

filename

A character string of file name whose data to be read to an object of class tbl_df.

Value

This function returns a table/data frame with data from the supplied file name.

Examples

1
2
   ## Not run: fars_read("accident_2014.csv.bz2")
   ## Not run: fars_read("data/accident_2014.csv.bz2")

sbudiman/brpextravis documentation built on May 17, 2019, 8:44 p.m.