R/remove_euks.R

Defines functions remove.euks

Documented in remove.euks

#' @name remove.euks
#' @title Remove eukaryotic taxa from a phyloseq object
#' @description Removes taxa that match Kingdom "Eukaryota", Order "Chloroplast", or Family "Mitochondria".
#' @param physeq a phyloseq object.
#' @seealso \code{\link{phyloseq}}, \code{\link{subset_taxa}}
#' @export

remove.euks <- function(physeq) {
  subset_taxa(
    physeq,
    Kingdom != "Eukaryota" & Order != "Chloroplast" & Family != "Mitochondria"
  ) %>%
    return()
}
kstagaman/phyloseqCompanion documentation built on Aug. 26, 2022, 5:07 a.m.