Description Usage Arguments Details Value Warning Note Examples
View source: R/fars_functions.R
The function reads a list of csv data files, specified by year, and returns
a list of tibbles tibble
with two columns: month and year.
1 | fars_read_years(years)
|
years |
a vector of years, as integers. |
If any of the years leads to an inexistent file, the function throws a warning.
A list of tibbles (see tibble
)).
dplyr package should be attached (library(dplyr)
),
or the function will throw an error because it cannot find the pipe
operator.
The data files must be in the current working directory (see also
getwd
) to be found.
1 2 | year_list <- fars_read_years(2013)
year_list <- fars_read_years(c(2013, 2014, 2015))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.