Description Usage Arguments Details Value Examples
fars_read_years
is a simple helper function which reads FARS files
with specified year and clean record structure to be reported with
fars_summarize_years
.
1 | fars_read_years(years)
|
years |
An integer/a list of integers to represent data files which needs to be read. |
This function is not designed for direct user interaction.
It is a helper function for fars_summarize_years
.
If any of the objects requested via input is not available as a year file or is not coercible to integer an "invalid year" error message returns.
An object of the tbl_df class which includes only incident dates in Months and Years, per requested year.
1 2 3 4 | library(farspkg)
fars_read_years("2015")
fars_read_years(c(2013.0,2014))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.