fars_summarize_years: fars_summarize_years counts the accidents in each months of...

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

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

Usage

1

Arguments

years

The argument of the funtion is a vector of years

Value

A tibble: 12 x 2 (data.frame), with number of accidents, sorted by month (numerically)

Examples

 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

Sensalis/farsHK documentation built on Oct. 30, 2019, 11:51 p.m.