as.polytomy: as.polytomy

View source: R/as.polytomy.R

as.polytomyR Documentation

as.polytomy

Description

collapse binary tree to polytomy by applying 'fun' to 'feature'

Usage

as.polytomy(tree, feature, fun)

Arguments

tree

tree object, 'phylo' object only

feature

selected feature

fun

function to select nodes to collapse

Value

polytomy tree

Author(s)

Guangchuang Yu


YuLab-SMU/ggtree documentation built on March 5, 2024, 2:16 p.m.