modelsFilter {mirTarRnaSeq} | R 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)

[Package mirTarRnaSeq version 1.2.0 Index]