fars_read: fars_read This function reads data from the US National...

Description Usage Arguments Value Note Examples

Description

fars_read This function reads data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS). It proceed by reading the filename of the data povided as argument and return a data as a tibble.

Usage

1
fars_read(filename)

Arguments

filename

A character string pointing to the filename of the FARS data.

Value

This function returns a tibble containing the FARS data. The function will stop if invalide filename is provided.

Note

this package comes with three example files that can be accessed using fullname <- system.file('extdata', 'accident_2013.csv.bz2', package = 'farsdataanalysis') fars_read(filename = fullname)

Examples

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

## End(Not run)

kanga1988/kangakola_coursera_R_pkg documentation built on May 28, 2019, 2:48 p.m.