nmarker-methods: Get the number of microbiome markers

nmarkerR Documentation

Get the number of microbiome markers

Description

Get the number of microbiome markers

Usage

nmarker(object)

## S4 method for signature 'microbiomeMarker'
nmarker(object)

## S4 method for signature 'marker_table'
nmarker(object)

Arguments

object

a microbiomeMarker or marker_table object

Value

an integer, the number of microbiome markers

Examples

mt <- marker_table(data.frame(
    feature = c("speciesA", "speciesB"),
    enrich_group = c("groupA", "groupB"),
    ef_logFC = c(-2, 2),
    pvalue = c(0.01, 0.01),
    padj = c(0.01, 0.01),
    row.names = c("marker1", "marker2")
))
nmarker(mt)

yiluheihei/microbiomeMarker documentation built on Nov. 5, 2023, 7:19 a.m.