filtering: Filter signals.

Description Usage Arguments

Description

There are two variations: do you want to use a predicate function (if) or a boolean stream (when); and do you want to keep or drop the values.

Usage

1
2
3
4
5
6
7
keepIf(signal, predicate, init = NULL)

dropIf(signal, predicate, init = NULL)

keepWhen(signal, predicate, init = NULL)

dropWhen(signal, predicate, init = NULL)

Arguments

signal

A signal

predicate

For if functions, a predicate function; for when, a signal yielding TRUE or FALSE.

init

Shiny does not allow undefined signals, so an initial value must be provided in case the first signal is filtered out.


hadley/shinySignals documentation built on May 17, 2019, 12:47 p.m.