replace_dups | R Documentation |
This is a support function for the main function
toPhylo_transmatOrigin
.
Replace duplicated in the form o ID_origin or ID_migrant by the correct tip name.
replace_dups(dup_tip, origNodes, tipNamesOri, tip_names_toInsert, tip_names)
dup_tip |
Vector of duplicated tips |
origNodes |
Vector of vertex IDs. |
tipNamesOri |
Vector in the form of ID_origin or ID_migrant. This vector contain the duplicated vertex when considering only the ID. |
tip_names_toInsert |
Vector of the correct value of tip name to use in the phylogenetic tree in the form of ID_origin or ID_migrant |
tip_names |
Vector of tip names in the form of ID only. This vector will contain the duplicated ID or IDs. |
Vector of tip names in the form of ID_origin or ID_migrant to use as tip.labels in the phylogenetic tree.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.