modelsFilter: modelsFilter Filter a list of models based on logical...

View source: R/modelsFilter.R

modelsFilterR Documentation

modelsFilter Filter a list of models based on logical expression

Description

This function can be used to filter a list of models (such as returned by runModelsZInf()) based on a logical expression.

Usage

modelsFilter(models, expr, quiet = FALSE)

Arguments

models

list of models and related elemenets, such as returned by runModelsZInf()

expr

expresion that yields a logical vector (evaluated in the environmnet of model)

quiet

suppress warnings

Value

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.

Examples


x <- modelsFilter(models, pvalues < 0.05)
x <- modelsFilter(models, is_significant)
x <- modelsFilter(models, is_significant == FALSE)


Mercedeh66/mirTarRnaSeq documentation built on April 14, 2023, 6:49 a.m.