Get Summary of Metadata Variables
Source:R/methods-MbioDataset.R
getMetadataVariableSummary-MbioDataset-method.Rd
Get a summary of the requested metadata variable in an MbioDataset.
Arguments
- object
An MbioDataset
- variable
A character vector representing the name of the metadata variable to summarize
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