fars_summarize_years: Calculate the number of observations per month for the FARS...

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

For a given year this function allows for calculating the number of observations per month for the US Fatality Analysis Reporting System data.

Usage

1

Arguments

years

an R object. Must be an integer or a character vector of length 1 or more, containing any year

Details

The function will give a warning if provided with an incorrect year. Note that the function doesn't stop running if it found an error – only produces an erorr.

Value

This function returns a tibble object containing a column with month exported from the data and a column with the number of observations per month. If provided with multiple years, the data frame will also contain multiple columns with numbers of observations – each for a year

Examples

1
2

Liddlle/exmplr documentation built on May 18, 2019, 1:34 p.m.