US National Highway Trac Safety Administration's Fatality Analysis Reporting System, which is a nationwide census providing the American public yearly data regarding fatal injuries suered in motor vechicle trac crashes.
This function shows the summary of FARS info (data frame). Count the accidents per month and year.
library(pho) fars_summarize_years(2013)
This function plots the State map with FARS data of a specific year. If no data to plot, a message and NULL will return.
library(maps) fars_map_state(48,2013)
This function will make a filename based on the input year, which requires a numerical input.
This function will take a list of years as input and read the corresponding FARS files of those years.
This function read FARS data (Fatality Analysis Reporting System) from a CSV file and returns a tibble. If the path or file is incorrect, the fuction will stop with an error.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.