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.


loosolab/wilson documentation built on Nov. 16, 2021, 3:21 p.m.