fars_summarize_years: Summarizes your data per year and month

Description Usage Arguments Details Value Examples

Description

This function opens your files regarding the specific year and also does summarization. It will create one file using all files you have given the function by simply binding the rows together. Then it groups the data by year and month and counts observations per group (month of a year). In the end it will give you the summarized data. Each column will represent the year you specified with the number of observations per specific month.

Usage

1

Arguments

years

numerical variable - can be a list

Details

It uses function 'spread' from tidyr package to describe the data per year. If you submit a non-existing year, the same errors as for fars_read_years function will appear.

Value

a tibble where aach column represents the year you specified with the number of observations per specific month.

Examples

1
2
3
4
## Not run: 
fars_summarize_years(list(2013))

## End(Not run)

dkurtoic/fars documentation built on May 7, 2019, 10:38 a.m.