filter_chain | R Documentation |
Mask target columns whenever a parameter column fails a threshold test.
filter_chain(out, param, thresh, comparator = "<=", target = "alpha")
out |
A data frame of class |
param |
Name of the parameter prefix (e.g. |
thresh |
Numeric threshold. |
comparator |
A string comparator: one of |
target |
Name of the target prefix to mask (e.g. |
An outbreaker_chains
data frame with target_*
entries set to NA
wherever param_*
comparator
thresh
is FALSE
.
# Mask alpha_i whenever kappa_i > 1
filter_chain(out, param = "kappa", thresh = 1, comparator = "<=", target = "alpha")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.