Learn R Programming

RevGadgets (version 1.2.1)

matchNodes: match Nodes

Description

match Nodes

Usage

matchNodes(phy)

Value

a data frame that translates ape node numbers to RevBayes node numbers

Arguments

phy

(tree in ape format; no default) Tree on which to match nodes

Examples

Run this code

treefile <- system.file("extdata", "bds/primates.tre", package="RevGadgets")
tree <- readTrees(treefile)
map <- matchNodes(tree[[1]][[1]]@phylo)

Run the code above in your browser using DataLab