| age_map | Sample Data: ACS Age Category Relation Table |
| aggregate_pop | Convenience function: aggregate population data to 7 age... |
| calc_metrics | Calculate all 5 metrics for a permission |
| calc_part | Calculate participants: return list of length 2... |
| calc_part_rate | Calculate participation rate |
| calc_priv_rate | Calculate privilege rate |
| county_map_us | Sample Data: Shapefile for all counties in the US |
| dashboard | Sample Data: Metrics formatted for Dashboard Input |
| data_check_sa | Check std. data formatting rules for Southwick dashboards |
| drop_na_custid | Drop rows with missing cust_id from sale table |
| drop_state_code | Remove the state portion of county fips |
| est_month | Estimate monthly sales |
| est_pop | Summarize population by year for a given segment |
| est_rate | Estimate rate based on participant and population counts |
| extrapolate_pop | Extrapolate population forward for years without estimates |
| factor_age_acs | Convert age_acs from character to factor |
| fill_missing_months | Set missing months to zero in month breakouts |
| filter_demo | Filter data for given variable |
| format_metrics | Format metrics (list) into a single table output (data frame) |
| get_county_map | Load county spatial data for selected state |
| get_county_map_dive | Load county spatial data for data dive |
| hist_samp | Sample Data: Permission data for use in 'run_visual_dive' |
| int_breaks | Use only integer values for a plot's axis labels |
| join_county_map | Join dashboard with county spatial data |
| load_cust_samp | Load a 10 percent sample of all sportspersons |
| load_license | Load license data (cust, lic, sale) into a list |
| load_sqlite | Load sqlite data |
| plot_bar | Make a bar plot: measure by year (facetted using metric &... |
| plot_county | Make a county chloropleth for all metrics |
| plot_county_dive | Chloropleth county plot for data dive |
| plot_dist | Plot distribution for selected variable-year |
| plotly_config | Convenience functions for shiny plots |
| plot_month | Make a sales by month plot |
| plot_trend | Plot trendline for run_visual_dive() |
| plot_value2 | Plot value by year for metric-category |
| prep_pop | Prepare population data for dashboard summaries - to be... |
| quarterly_filter | Filter by quarter in prepartion for calculating metrics |
| quarterly_lapse | Calculate lapse for a quarterly subset (where quarter != 4) |
| recode_history | Prepare license history for selected quarter (recoding) |
| remove_table | Convenience function to remove a table from a database |
| run_visual | Run shiny app summary of dashboard results |
| run_visual_dive | Run shiny app version of data dive |
| sadash | sadash: Prepare state data dashboards |
| sapply2 | Convenience function for use in calc_metrics() that wraps... |
| set_nonres_county_na | Set county_fips to missing if nonresident |
| set_other_county_na | Set cust$county_fips to missing if from another state |
| summarize_trend | Summarize trend for either participants or churn |
| ui_button_layout | Define UI layout for run_visual() |
| write_dash | Convenience function: output a csv file for given... |
| write_history | Write history table to sqlite |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.