fars_read: Read file with FARS data

Description Usage Arguments Details Value Note See Also Examples

Description

This function reads in a .csv file from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System (FARS).

Usage

1
fars_read(filename)

Arguments

filename

A character string with the file name.

Details

For more information, visit:

Value

A data frame with data 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)

mcuddy76/FARScoursera documentation built on May 9, 2019, 10:42 a.m.