sampleOn: Sample one signal on another signal.

Description Usage Arguments

View source: R/signal.R

Description

Sample from the second input every time an event occurs on the first input. For example, every(1) %>% sampleOn(click) will give the approximate time of the latest click. This is useful for temporal up- and down-scaling.

Usage

1
sampleOn(signal, on)

Arguments

signal

Signal that provides a value.

on

Signal that determines when to submit a new value.


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