merge_phylo: Merge fully named subtrees according to a reference tree

View source: R/tree_manipulation.R

merge_phyloR Documentation

Merge fully named subtrees according to a reference tree

Description

Merge fully named subtrees according to a reference tree

Usage

merge_phylo(x, subtrees)

## S3 method for class 'Strata'
merge_phylo(x, subtrees)

## S3 method for class 'phylo'
merge_phylo(x, subtrees)

Arguments

x

phylo object

subtrees

A list of phylo objects. All nodes and leafs of each tree must be named. All names must be from 'tree'.

Value

phylo object

Examples

data(atree)
subtrees <- list(
  subtree(atree, 'n19'),
  subtree(atree, 'n18'),
  subtree(atree, 'n15')
)
merge_phylo(atree, subtrees)

arendsee/phylostratr documentation built on Dec. 31, 2022, 10:22 a.m.