fars_summarize_years: Summarise FARS observation counts by year and month

Description Usage Arguments Value Examples

View source: R/fars_functions.R

Description

fars_summarize_years() counts data rows for each (year, MONTH) tuple within the specified year range. This function calls fars::fars_read_years to read the source data.

Usage

1
fars_summarize_years(years, internal = TRUE)

Arguments

years

Integer vector containing one or more years.

internal

Logical value indicating whether or not the package example data is used. Defaults to TRUE.

Value

Returns a pivot table/crosstab of observation counts generated using functions from dplyr and tidyr. Columns are 'year', rows are 'MONTH'. The object returned is a tibble.
The conditions that may result in an error are the same as documented for fars::fars_read_years.

Examples

1

rwpalin/fars documentation built on Nov. 5, 2019, 5:10 a.m.