Description Usage Arguments Value Examples
View source: R/fars_functions.R
This function create a summary for some years from the input files.
The function uses fars_read_years()
to collect the data.
The summarized data is a non-tidy table of the number of accidents for a give month and year.
1 | fars_summarize_years(years)
|
years |
List or vector of the years to be extracted from the datafile. |
This function returns a data frame. The data frame has 12 rows, each month has a row.
The data frame has one column for the month plus each year from the years
argument
has its own column. specific element in a row for a given year contains the number of
accidents from the sample data.
1 2 3 4 | ## Not run:
fars_summarize_years(years=c(2014,2015))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.