knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
This is documentation the package Course3wk2 for using functions to analyze Fatality Analysis Reporting System [fars] data. This package was created for the Building R Packages Coursera Course.
Read data files using the fars_read_years function. This function returns a tibble for the specified year(s) data. Example usage:
fars_read_years (2013)
fars_read_years (2013:2015)
fars_read_years (c(2013,2015))
Use the fars_summarize_years to get a count summary. Example usage:
fars_summarize_years (2013:2015)
Use fars_map_state function to get a map of accident locations. Parameters: 1. state code 2. year(s)
Example usage :
fars_map_state(1,2013)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.