filterByPheno {microbiomeExplorer} | R Documentation

## Function to filter the MRexperiment by certain phenotype values

### Description

Function to filter the MRexperiment by certain phenotype values

### Usage

    filterByPheno(MRobj, rm_phenovalues)

### Arguments

`MRobj` | the MRexperiment to subset
`rm_phenovalues` | list of named vectors with names corresponding to column names in pData and values representing phenotypes within the column

### Value

the filtered MRobj

### Author(s)

Janina Reeder

### Examples

    data("mouseData", package = "metagenomeSeq")
    filterByPheno(MRobj = mouseData,
      rm_phenovalues = list("diet" = c("BK"),"mouseID" = c("PM1","PM10")))

[Package microbiomeExplorer version 1.4.0 Index]