Learn R Programming

kdetrees (version 0.1.3)

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

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

## 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

Examples

Run this code
result <- kdetrees(apicomplexa)
as.data.frame(result)

Run the code above in your browser using DataLab