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.
1 | sampleOn(signal, on)
|
signal |
Signal that provides a value. |
on |
Signal that determines when to submit a new value. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.