Iteractive function that enables the user to read multiple .csv files from a range of years It will read a group of files on the same folder changing the year inside a range that was defined by the user
a number that represents the year or years of data to import. the user can import 1 year data or create a sequence like n:m (n<=m), the function will read the files from year n to m
This function returns a dataset with with the following structure:
one line per accident with Month and Year of accident as columns
if a cvs file of a year on the function parameters does not existe the funtion will
throw an warning with the message "invalid year:
## Not run: fars_read_years(2013)
## Not run: fars_read_years(c(2013:2015))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.