fars_read_years: Import yearly accident csv files

Description Usage Arguments Value Examples

View source: R/fars_read_years.r

Description

This function takes one or more years as input, imports the related csv file(s) creates a new column called year and returns MONTH and year variables as a tibble.

Usage

1

Arguments

years

a character/numeric string, vector or list of years

demo

logical if you want to use the function with demo data that comes with the package. Default to FALSE

Value

a list. Each element of the list could be a tibble if the function finds a csv corresponding to the year, or NULL if the csv file is not present.

Examples

1
2
3
## Not run: acc_list <- fars_read_years(2013:2015)
acc <- fars_read_years("2015")
## End(Not run)

veronicavedovetto/fars documentation built on Dec. 18, 2019, 12:33 a.m.