Description Usage Arguments Value
View source: R/get_sparklines_data.R
This function gathers the base data needed for the County Dashboard trend plots (aka - the sparklines) and handles initial cleaning and preparation of this data.
Once finished, the sparklines data - along with the fast facts data
gathered by get_fast_facts_data()
- is handed off to
finalize_dashboard_data()
to put it in the final format needed
for app consumption.
1 | get_sparklines_data(annie_connection, year_start = NA, year_end = NA)
|
annie_connection |
Active RODBC connection to one of the annie MySQL servers. |
year_start |
Optional. Can specify the start year as a character vector. If NA, the data sources will be assessed for a smallest minimum. |
year_end |
Optional. Can specify the end year as a character vector. If NA, the data sources will be assessed for a largest maximum. |
Returns a list with three data frames - county, region, and state - needed to support the different trend line views. These data frames need further processing prior to app consumption.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.