as.phyloData: as.phyloData

View source: R/tree.R

as.phyloDataR Documentation

as.phyloData

Description

Convert a 'phylo' object into a data frame of edge information and a vector of node information.

Usage

as.phyloData(phy, unscaled = FALSE)

Arguments

phy:

an S3 object of class 'phylo' ('ape' package), which must be a rooted tree.

Value

an S3 object of class 'phyloData'

Examples

require(ape)
phy <- rtree(20)
as.phyloData(phy)


ArtPoon/ggfree documentation built on July 11, 2024, 11:15 a.m.