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

Read the data

fars_data <- fars_read_years(2013)

Summary basic

knitr::kable(fars_summarize_years(years = c(2013:2014))) 

Plot

To plot the locations of the accidents in a year:

```r fars_map_state(11, 2013)



orozcoae89/Rcur documentation built on June 21, 2020, 12:59 a.m.