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

This vignette shows how to use ex4fars package to read, summarize and plot some fars data besides shows what is fars data.

Fars data

Fars is a acronymous to Fatality Analysis Reporting System that is a dataset recorded by (NHTSA) (National Highway Traffic Safety Administration) that is an operating administration from (U.S. Department of Transportation). To check out the latest data you can click (here).

ex4fars

The ex4fars package includes functions to read a fars dataset cointained in *.bz2 files downloaded in (NHTSA - FARS) passing by as argument only the desired years. Also it has functions to summarize this data using a year as argument and plot the fatalities in a U.S. state passing the state code and a year. These functions are:

To see each function brief explanation plus example of usage, check out help files.

Important: The *.bz2 files need to be placed in working directory to read fars function reckonize them.



danielfsilva88/ex4fars documentation built on April 5, 2020, 10:07 p.m.