replace_branch: Replace a branch on a Strata

View source: R/tree_manipulation.R

replace_branchR Documentation

Replace a branch on a Strata

Description

Replace a branch on a Strata

Usage

replace_branch(x, y, node)

Arguments

x

Strata object

y

Strata object

node

The name of a node in x where y will be placed

Examples

## Not run: 
  data(saccharomyces)
  x = saccharomyces
  y = subtree(saccharomyces, 's2')
  y = strata_convert(y, target='tip', to='name')
  x = replace_branch(x, y, "s2")

## End(Not run)

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