searchData: Function to search data for selection

Description Usage Arguments Value

View source: R/function.R

Description

Function to search data for selection

Usage

1
2
3
4
5
6
7
searchData(
  input,
  choices,
  options = c("=", "<", ">"),
  min. = min(choices, na.rm = TRUE),
  max. = max(choices, na.rm = TRUE)
)

Arguments

input

Vector length one (single) or two (ranged) containing numeric values for selection.

choices

Vector on which input values are applied.

options

Vector on how the input and choices should be compared. It can contain: single = c("=", "<", ">") or ranged = c("inner", "outer").

min.

Minimum value that can be selected on slider (defaults to min(choices)).

max.

Maximum value that can be selected on slider (defaults to max(choices)).

Value

Returns a logical vector with the length of choices, where every matched position is TRUE.


wilson documentation built on April 19, 2021, 5:07 p.m.