R/create.phylum.table.R

Defines functions extract.phylum

Documented in extract.phylum

#' extract a table of the phylum of bacteria based on the taxize package
#'
#' to compute later
#'
#' @return a table with the one line for each phylum
#' @export
#'
extract.phylum <- function()
{
  library(taxize)
  library(dplyr)
  phylum <- itis_downstream(id = 50, downto="phylum")
  phylum <- tibble(phylum)
  phylum <- phylum %>% select(tsn,taxonname)
  return(phylum)
}
JeromeAmbroise/syngulon2 documentation built on July 17, 2020, 7:30 a.m.