knitr::opts_chunk$set(echo = TRUE)
The farsfunctions package gives the ability to read and visualise events provided by thethe National Highway Traffic Safety Administration (NHTSA) Fatality Analysis Reporting System (FARS) data.
The package contains five functions - each function is defined below.
Reads a given file - of a FARS data format - specified by the filename
Create a filename for a given year with format "accident_YEAR.csv.bz2"
Read multiple .csv data file for a integer series of provided years
Summarises data on month and given year from a FARS data format
Creates a map visualising all accident events in a given State for a paricular year.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.