newick_to_edges | R Documentation |
Turn a newick format tree to a matrix of edges
newick_to_edges(newick, node = "R", edgemat = matrix(NA, 0, 2))
newick |
Tree in newick format. |
node |
Root label of the tree. |
edgemat |
Used for recursive function calls. |
Tree as two column matrix of edges (adjacency list)
newick = random_newick(c('a', 'b', 'c', 'd'))
newick
newick_to_edges(newick)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.