Description Usage Arguments Value Examples
View source: R/fars_functions.R
fars_summarize_years counts the accidents in each months of the given year and therefore summarizes fars_read_years function in grouping the data by month
1 | fars_summarize_years(years)
|
years |
The argument of the funtion is a vector of years |
A tibble: 12 x 2 (data.frame), with number of accidents, sorted by month (numerically)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | library(farsHK)
fars_summarize_years(2013)
# A tibble: 12 x 2
# MONTH `2013`
# <dbl> <int>
# 1 1 2230
# 2 2 1952
# 3 3 2356
# 4 4 2300
# 5 5 2532
# 6 6 2692
# 7 7 2660
# 8 8 2899
# 9 9 2741
# 10 10 2768
# 11 11 2615
# 12 12 2457
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.