knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

This package provides users basic functions to read, summarize and visualize FARS data. An overview of basic usage is provided below. Refer to the docs for more details.

Summarize Observations

We can use this package to summarize FARS data. To obtain a count of the number of accidents for each month in certain years we specify the years of interest to the function fars_summarize_years.

BuildingRPackagesAssignment::fars_summarize_years(c(2013, 2014))

Visualize

Can also obtain a plot of the coordiantes of the accidents in a state for a given year using the function fars_map_state.

BuildingRPackagesAssignment::fars_map_state(1, 2013)


osama-arshad/BuildingRPackagesAssignment documentation built on May 14, 2019, 11:13 a.m.