fars_read: Read a data file

Description Usage Arguments Value Source Examples

Description

This function reads a data file containing FARS data

Usage

1
fars_read(filename)

Arguments

filename

A character string giving the file name for the data

Value

This function returns the data in the file

Source

The data used is from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS), which is a nationwide census providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes.

Examples

1
2
3
4
5
6
## Not run: 
fars_read("accident_2013.csv.bz2")
fars_read("accident_2014.csv.bz2")
fars_read("accident_2015.csv.bz2")

## End(Not run)

diyanr/RPackageAssignment documentation built on May 15, 2019, 8:53 a.m.