Skip to contents

Checks if Recipe contains a rarefaction step

Usage

contains_rarefaction(rec)

Arguments

rec

A Recipe object. The step will be added to the sequence of operations for this recipe.

Value

boolean

Examples

data(GlobalPatterns, package = "phyloseq")
rec <-
  phyloseq::subset_samples(
    GlobalPatterns, SampleType %in% c("Soil", "Skin")
  ) |>
  recipe(var_info  = "SampleType", tax_info = "Genus") |>
  step_rarefaction()

contains_rarefaction(rec)
#> [1] TRUE