get_sparklines_data: Helper function to get and clean County Dashboard...

Description Usage Arguments Value

View source: R/get_sparklines_data.R

Description

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.

Usage

1
get_sparklines_data(annie_connection, year_start = NA, year_end = NA)

Arguments

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.

Value

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.


pocdata/pocr documentation built on Jan. 5, 2022, 9:54 a.m.