This vignette summarizes the functions of the farsR Package which was build as an assignment for the Coursera Building R Packages Course.
Functions of the package:
To use the package you need to download the FARS data and put the files in your working directory. Then, by giving a year of interest, the package summarizes of visualizes the data.
Loads the data from a given FARS data file.
fars_read("accident_2013.csv.bz2")
Creates the filename for the FARS data file for the year of interest
make_filename(2013)
Reads FARS data for multiple years.
fars_read_years(2013:2014)
Summarizes FARS data for each month for the years of interest.
fars_summarize_years(2013:2014)
Plots all cases of a year or interest to a US map.
fars_map_state(45, 2013)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.