fars_summarize_years: fars_summarize_years() this function summarizes yearly...

Description Usage Arguments Examples

View source: R/fars.R

Description

fars_summarize_years() this function summarizes yearly accidents data, by month and produces a summary of the simple counts of fatalities by month and year internal functions needed is fars_read_years() external package needed is dplyr and tidyr. Thre functions of dplyr are used :sbind_rows(),group_by(),summarize(). function spread() from tidyr is used as well.

Usage

1

Arguments

years

is a vector of years as the argument. The fars_summarize_years() function take the same argument as the fars_read_years().

Examples

1
2
##fars_summarize_years(years = c(2013, 2015)
##fars_summarize_years(2013:2015)

jianweilu/rhomewek documentation built on Aug. 8, 2020, 6:44 p.m.