sensible_slider_vals: Get sensible slider values

View source: R/shiny_functions.R

sensible_slider_valsR Documentation

Get sensible slider values

Description

Function for converting a numeric vector into recommended arguments for shiny::sliderInput, for sliders in LexOPS.

Usage

sensible_slider_vals(numeric_vec, n_levels, is_tolerance = FALSE)

Arguments

numeric_vec

The numeric vector which the slider will be for.

n_levels

How many sliders are to be generated for this variable?

is_tolerance

Logical; is the slider for specifying tolerances (e.g. for matching)? Default is FALSE.

Value

A list object, containing the following recommended argument values for shiny::sliderInput:

  • min

  • max

  • value

  • step


LexOPS documentation built on Dec. 1, 2026, 5:06 p.m.