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 Nov. 3, 2024, 4:15 p.m.