knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

farsfunctions

farsfunctions provides functions for using data from the US National Highway Traffic Safety Administration's Fatality Analysis Reporting System.

Functions

make_filename: Create the name of the files that holds the data of a year. fars_read: Read a fars file, file name can me provided by make_filename. fars_read_years: Read fars file for multiple years. fars_summarize_years: Summarize fars data for multiple year. fars_map_state: Displays data from the Fatality Analysis Reporting System for one year and one state on a map.

Example

library(farsfunctions)
file_2013 <- make_filename(2013)
file_2013


julianbarg/farsfunctions documentation built on May 5, 2019, 1:36 a.m.