percentGauge: Server-side code for a generic KPI gauge.

Description Usage Arguments See Also

View source: R/kpis.R

Description

Server-side code for a generic KPI gauge. Uses dplyr:: functions to figure out the percentage.

Usage

1
2
percentGauge(input, output, session, fdat, pcol, p_options, gauge_label,
  reversed_values = FALSE)

Arguments

input

Required for shiny modules' server functions.

output

Required for shiny modules' server functions.

session

Required for shiny modules' server functions.

fdat

dataframe, filtered by demographic variables and product.

pcol

numeric, the number of fdat's column containing the question of interest.

p_options

vector, all the strings in fdat[[pcol]] that are counted as positive (e.g. "Yes").

gauge_label

string, label for gauge

reversed_values

logical, indicates whether to flip values (e.g. gauge_value <- 100 - gauge_value )

See Also

percentGaugeUI


IskanderBlue/morseldash documentation built on Oct. 30, 2019, 7:24 p.m.