fars_summarize_years: Reads a vector of files and returns the # of observation by...

Description Usage Arguments Value Note See Also Examples

View source: R/fars_functions.R

Description

The function takes a vector of year numbers, reads the corresponding files (using fars_read_years) and counts the number of rows in aggregated by month number. Then it builds a table with one row for each month, and one column for each file / year, and the values represent the total number of observations.

Usage

1

Arguments

years

a vector of years, as integers.

Value

A tibble with 12 rows and 1 column for each year.

Note

The data files must be in the current working directory (see also getwd) to be found.

See Also

(fars_read_years)

Examples

1
2
aggregated <- fars_summarize_years(2013)
aggregated <- fars_summarize_years(c(2013, 2014, 2015))

Roger-Li/farsPackage documentation built on May 25, 2019, 1:28 p.m.