Skip to contents

Calculate Taxon Prevalence across Samples

Usage

taxa_prevalence(object, detection = 0, proportion = FALSE)

Arguments

object

A microbiome_dataset object.

detection

Minimum abundance required to count as present.

proportion

Return prevalence as a proportion instead of counts?

Value

A numeric vector named by variable_id.

Examples

data("global_patterns", package = "microbiomedataset")

x <- taxa_prevalence(global_patterns, detection = 0)
head(x)
#> 549322 522457    951 244423 586076 246140 
#>      5      2      1      2      2      2