fars_read: Read Fatality Analysis Reporting System data

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

This function reads a .csv file providing the American public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes, and returns a tibble.

Usage

1
fars_read(filename)

Arguments

filename

A string with the path of the .csv file to read.

Value

A tibble containing the data, or an error if the file does not exist

Examples

1
2
3
4
5
6
7
8
## Not run: 

library(dplyr)
library(readr)
fars_read("accident_2015.csv.bz2")


## End(Not run)

BFavetto/fars documentation built on Dec. 17, 2021, 9:51 a.m.