This package provides essential function to analyse the FARS (Fatality Analysis Reporting System) dataset
library(CourseraRpackagesFinal) library(magrittr)
The accidents happening in a state in a given year can be mapped thanks to the fars_map_state
function:
setwd(system.file("extdata", package="CourseraRpackagesFinal")) fars_map_state(1, 2013)
The total records from each years can be obtained via the fars_summarize_years
function:
setwd(system.file("extdata", package="CourseraRpackagesFinal")) fars_summarize_years(c(2013,2014))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.