Learn R Programming

taxonomizr (version 0.8.0)

makeNewick: Create a Newick tree from taxonomy

Description

Create a Newick formatted tree from a data.frame of taxonomic assignments

Usage

makeNewick(taxa, naSub = "_")

Arguments

taxa

a matrix with a row for each leaf of the tree and a column for each taxonomic classification e.g. the output from getTaxonomy

naSub

a character string to substitute in place of NAs in the taxonomy

See Also

getTaxonomy

Examples

Run this code
# NOT RUN {
taxa<-matrix(c('A','A','A','B','B','C','D','D','E','F','G','H'),nrow=3)
makeNewick(taxa)
# }

Run the code above in your browser using DataLab