fars_read_years: Extract month and year for all observations from an accident...

Description Usage Arguments Value Examples

Description

This function extract the month and the year for each observation (accident) of a file and put the results in a list. In the list there is one element for each year and each element is a tibble with 2 columns (MONTH and year) for each accident.

Usage

1

Arguments

years

One or more years, numeric integer value specified in form of a list.

Value

This function returns a list, one element for each specified year and each element is a tibble with 2 columns (MONTH and year), the number of observations is the number of accidents in the year. If the parameters are not legal integers the function return an error. If a specified year is not valid year, the function returns a warning message indicating the invalid year.

Examples

1
2
3
4
## Not run: 
read_years<-fars_read_years(years=2013:2015)

## End(Not run)

friveramariani/fars documentation built on May 7, 2019, 7:57 a.m.