View source: R/rvar-summaries-within-draws.R
| rvar_is_finite | R Documentation |
Compute special value predicates (checking for finite / infinite values, NaN, and NA)
on all draws within a random variable, returning a random variable.
rvar_is_finite(x)
rvar_is_infinite(x)
rvar_is_nan(x)
rvar_is_na(x)
x |
(rvar) An |
These functions return a new rvar that is the result of applying
is.finite(), is.infinite(), is.nan(), or is.na() to every draw
in the input random variable.
A logical rvar of the same length as the input.
rvar-summaries-over-draws for summary functions across draws, including
implementations of is.finite(), is.infinite(), is.nan(), and is.na() for
rvars.
Other rvar-summaries:
rvar-summaries-over-draws,
rvar-summaries-within-draws
x <- rvar(c(1, Inf, -Inf, NaN, NA))
x
rvar_is_finite(x)
rvar_is_infinite(x)
rvar_is_nan(x)
rvar_is_na(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.