merge_taxon: Merging taxon in one column.

Description Usage Arguments Examples

View source: R/merge_taxon.R

Description

Merging taxon in one column by deepest taxonomic level.

Usage

1
merge_taxon(.identify_list, .id = F)

Arguments

.identify_list

table (see example).

.id

logical, make id against each taxon. This is useful in makeing labels by each OTU.

Examples

1
2
3
4
5
6
7
8
9
identify_list <- data.frame(
   otu = c("otu1", "otu2", "otu3", NA),
   phylum = c("p1", "p2", "p3", NA),
   order = c("o1", "o2", "o3", NA),
   family = c("f1", NA, "f3", NA),
   genus = c(NA, NA, "g3", NA)
)
merge_taxon(.identify_list = identify_list, .id = TRUE)
merge_taxon(.identify_list = identify_list, .id = FALSE)

Hide-Fun/metabarcode documentation built on March 10, 2021, 11:27 p.m.