modelsFilter | R Documentation |
This function can be used to filter a list of models (such as returned by runModelsZInf()
)
based on a logical expression.
modelsFilter(models, expr, quiet = FALSE)
models |
list of models and related elemenets, such as returned by |
expr |
expresion that yields a logical vector (evaluated in the environmnet of |
quiet |
suppress warnings |
models
but with all elements filtered by logical expression expr
. Elements
for which filter could not be applied (e.g. length mismatch between element and condition)
are set to NA
.
x <- modelsFilter(models, pvalues < 0.05)
x <- modelsFilter(models, is_significant)
x <- modelsFilter(models, is_significant == FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.