View source: R/SupplementaryFunctions.R
adj_matrix_to_tree | R Documentation |
Create a tree object of class "phylo" from an adjacency matrix
adj_matrix_to_tree(edges)
edges |
Dataframe comprising an adjacency matrix, in which the first column is the parent and the second is the daughter. |
A phylo object.
Rob Noble, robjohnnoble@gmail.com
edges1 <- data.frame(Parent = c(1,1,1,3,3), Identity = 2:6) tree <- adj_matrix_to_tree(edges1) class(tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.