Learn R Programming

phylobase (version 0.6.8)

phylo4d-class: phylo4d class

Description

S4 class for phylogenetic tree and data.

Arguments

Objects from the Class

Objects can be created from various trees and a data.frame using the constructor phylo4d, or using new("phylo4d", ...) for empty objects.

See Also

coerce-methods for translation functions. The phylo4d constructor and the formatData function to check the validity of trees and data. See also the phylo4 constructor, the phylo4 class, and the checkPhylo4 function to check the validity of phylo4 trees.

Examples

Run this code
example(read.tree, "ape")
  obj <- phylo4d(as(tree.owls.bis,"phylo4"), data.frame(wing=1:3))
  obj
  names(obj)
  summary(obj)

Run the code above in your browser using DataLab