Description Usage Arguments Details Value Examples
View source: R/fars_functions.R
This is a function that reads and then summarises FARS data for one or more years
specified by years
argument and returnes summary data frame.
1 | fars_summarize_years(years)
|
years |
numeric vector that specifies the years to summarise the data |
Summary table will be received
This function returns a list of data frames
@section Depends on:
bind_rows
, group_by
and summarize
in the
dplyr
package.
spread
in the tidyr
package.
1 2 3 4 5 6 | ## Not run:
fars_summarize_years(c(2013, 2014, 2015))
fars_summarize_years(c(2013:2015))
fars_summarize_years(list(2013, 2014, 2015))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.