fars_read: Read Fatality Analysis Reporting System data

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This is a simple function that silently reads a csv file of Fatality Analysis Reporting System data into a tibble. It will check to make sure the file exists before attempting to read it.

Usage

1
fars_read(filename)

Arguments

filename

A path (character) to the file the function will read. Note that this can be a compressed file.

Value

This function returns a tibble (a tidyverse version of a data frame) containing the Fatality Analysis Reporting System data.

Examples

1
2
3
4
## Not run: 
fars_read("data/accident_2013.csv.bz2")

## End(Not run)

willrussifp/RPackageCoursera documentation built on May 19, 2019, 4:06 p.m.