Skip to contents

Get a summary of the requested metadata variable in an MbioDataset.

Usage

# S4 method for MbioDataset
getMetadataVariableSummary(object, variable)

Arguments

object

An MbioDataset

variable

A character vector representing the name of the metadata variable to summarize

Value

a table summarizing the values of the requested metadata variable

Examples

getMetadataVariableSummary(microbiomeData::DiabImmune, "age_months")
#>    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
#>    0.00    8.00   15.00   15.62   22.00   38.00 
getMetadataVariableSummary(microbiomeData::DiabImmune, "sex")
#> Female   Male 
#>   1475   1874 
getMetadataVariableSummary(microbiomeData::DiabImmune, "country")
#> Estonia Finland  Russia 
#>     555    2142     652