fars_read: Read file with FARS data

Description Usage Arguments Details Value Note See Also Examples

Description

This function reads data from .csv file, stored on disk, 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.

Usage

1
fars_read(filename)

Arguments

filename

A character string with the name of the file to read, see notes.

Details

For more information, see:

Value

A data frame with data readed from the csv file, or an error if the file does not exists.

Note

To generate file name use: make_filename

See Also

make_filename

Examples

1
2
3
4
5
6
7
library(dplyr)
library(readr)
yr <- 2015
data <- yr %>%
  make_filename %>%
  fars_read
head(data)

Sizu19/R-Project documentation built on May 17, 2019, 8:47 p.m.