Man pages for southwick-associates/sadash
Prepare Agency Dashboard Data for state-level dashboards

age_mapSample Data: ACS Age Category Relation Table
aggregate_popConvenience function: aggregate population data to 7 age...
calc_metricsCalculate all 5 metrics for a permission
calc_partCalculate participants: return list of length 2...
calc_part_rateCalculate participation rate
calc_priv_rateCalculate privilege rate
county_map_usSample Data: Shapefile for all counties in the US
dashboardSample Data: Metrics formatted for Dashboard Input
data_check_saCheck std. data formatting rules for Southwick dashboards
drop_na_custidDrop rows with missing cust_id from sale table
drop_state_codeRemove the state portion of county fips
est_monthEstimate monthly sales
est_popSummarize population by year for a given segment
est_rateEstimate rate based on participant and population counts
extrapolate_popExtrapolate population forward for years without estimates
factor_age_acsConvert age_acs from character to factor
fill_missing_monthsSet missing months to zero in month breakouts
filter_demoFilter data for given variable
format_metricsFormat metrics (list) into a single table output (data frame)
get_county_mapLoad county spatial data for selected state
get_county_map_diveLoad county spatial data for data dive
hist_sampSample Data: Permission data for use in 'run_visual_dive'
int_breaksUse only integer values for a plot's axis labels
join_county_mapJoin dashboard with county spatial data
load_cust_sampLoad a 10 percent sample of all sportspersons
load_licenseLoad license data (cust, lic, sale) into a list
load_sqliteLoad sqlite data
plot_barMake a bar plot: measure by year (facetted using metric &...
plot_countyMake a county chloropleth for all metrics
plot_county_diveChloropleth county plot for data dive
plot_distPlot distribution for selected variable-year
plotly_configConvenience functions for shiny plots
plot_monthMake a sales by month plot
plot_trendPlot trendline for run_visual_dive()
plot_value2Plot value by year for metric-category
prep_popPrepare population data for dashboard summaries - to be...
quarterly_filterFilter by quarter in prepartion for calculating metrics
quarterly_lapseCalculate lapse for a quarterly subset (where quarter != 4)
recode_historyPrepare license history for selected quarter (recoding)
remove_tableConvenience function to remove a table from a database
run_visualRun shiny app summary of dashboard results
run_visual_diveRun shiny app version of data dive
sadashsadash: Prepare state data dashboards
sapply2Convenience function for use in calc_metrics() that wraps...
set_nonres_county_naSet county_fips to missing if nonresident
set_other_county_naSet cust$county_fips to missing if from another state
summarize_trendSummarize trend for either participants or churn
ui_button_layoutDefine UI layout for run_visual()
write_dashConvenience function: output a csv file for given...
write_historyWrite history table to sqlite
southwick-associates/sadash documentation built on Jan. 6, 2022, 5:17 p.m.