fars_summarize_years: Reading bz2 zipped data files and creating a summary of the...

Description Usage Arguments Details Value Examples

View source: R/fars_functions.R

Description

The function fars_summarize_years uses the fars_read_years function toload the datasets and creates a list of each dataset containing only the month and year per observation. All this data is combined, via binding all rows together. Next, the data is grouped by month and year that the number of observations of each grouping can be measured. In the last step, year and the number of observations per month and year (=n) are spread, meaning new columns are created for each element of the year column and it's value is the number of n in this month.

Usage

1

Arguments

years

A list/vector containing the years for which data should be loaded and month + year are extracted

Details

Error occur, in the same cases as for fars_read_years. If there are no errors in this help function, everything works well.

Value

A dataframe containing the number of each month and the number of observations for each month in each of the input years

Examples

1
# fars_summarize_years(2013)

alex2905/coursera documentation built on May 17, 2019, 8:04 a.m.