fars_summarize_years: Title fars_summarize_years

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

Receive a list of years (one or several years) and pass it to the function fars_read_years (). This function receives a set of data with the month and year columns. It uses several functions of dplyr to count the number of observations per month for each year.

Usage

1

Arguments

years

One or more years, no error checking

Details

Uses fars_read_years(years)

Value

A data frame of counts by month and year

Examples

1
2
3
4
5
6
x <- setwd(system.file("extdata", package = "packagefars"))
# Summary with the tallies of car fatalities in 2013.
fars_summarize_years(2013)
# Summary with the tallies of car fatalities in 2013 and 2014.
fars_summarize_years(c(2013, 2014))
setwd(x)

marcelamu95/repo_packagefars documentation built on Nov. 4, 2019, 5:22 p.m.