as.data.frame.kdetrees: Convert kdetrees object to data.frame

Description Usage Arguments Value Author(s) Examples

View source: R/util.R

Description

Converts a kdetrees object to a data.frame suitable for saving as output. It contains the density estimates for each tree, a Boolean value indicating if the tree was selected as an outlier, and optionally the newick string corresponding to the tree.

Usage

1
2
## S3 method for class 'kdetrees'
as.data.frame(x, row.names, optional, trees = NULL, ...)

Arguments

x

kdetrees object to be converted

row.names

ignored

optional

ignored

trees

If given the original list of trees, will convert to newick and add a column to the output

...

unused

Value

a data.frame

Author(s)

Grady Weyenberg

Examples

1
2
result <- kdetrees(apicomplexa, outgroup="Tt")
as.data.frame(result)

grady/kdetrees documentation built on Jan. 28, 2018, 10:33 a.m.