Learn R Programming

taxonomizr (version 0.2.2)

condenseTaxa: Condense a taxa table for a single read

Description

Take a table of taxonomic assignments from hits to a single read and condense it to a single vector with NAs where there are disagreements between the hits

Usage

condenseTaxa(taxaTable)

Arguments

taxaTable

a matrix or data.frame with hits on the rows and various levels of taxonomy in the columns

Value

a vector of length ncol(taxaTable) with NAs where the is not complete agreement

Examples

Run this code
# NOT RUN {
taxas<-matrix(c(
 'a','b','c','e',
 'a','b','d','e'
),nrow=2,byrow=TRUE)
condenseTaxa(taxas)
# }

Run the code above in your browser using DataLab