fars_summarize_years: Produce number of observations per month

Description Usage Arguments Value Examples

View source: R/Cousera4.R

Description

Read public yearly data regarding fatal injuries suffered in motor vehicle traffic crashes from the US National Highway Traffic Safety Administration as a dataframe and print as a tibble. The function can read in data from multiple years (a vector with year numbers should be given) and outputs the number of observations per month per year (years in colums, months in rows)

Usage

1

Arguments

years

An integer value or a vector of integer values representing years of interest.

Value

A tibble with 12 rows (one for each month). Yearly data represented in columns.

Examples

1
2
## Not run: fars_summarize_years(2013)
## Not run: fars_summarize_years(c(2013,2014))

ulicheva/Coursera4 documentation built on May 3, 2019, 2:24 p.m.