count: Count the number of times a signal has been updated.

Description Usage Arguments Value Examples

View source: R/signal.R

Description

Count the number of times a signal has been updated.

Usage

1
2
3
count(signal)

countIf(signal, predicate)

Arguments

signal

A signal.

predicate

A predicate; only signals for which the predicate returns true will be counted.

Value

A reactive integer

Examples

1
2
3
rand <- reactive({fps(30); rnorm(1)})
count(rand)
countIf(rand, function(x) x > 0)

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