add.tree: Add, get or remove tree

View source: R/dispRity.utilities.R

add.treeR Documentation

Add, get or remove tree

Description

Adding, extracting or removing the tree component from a dispRity object

Usage

add.tree(data, tree)

get.tree(data)

remove.tree(data)

Arguments

data

A dispRity object.

tree

A phylo or mutiPhylo object.

Author(s)

Thomas Guillerme

See Also

custom.subsets, chrono.subsets, boot.matrix, dispRity.

Examples

## Loading a dispRity object
data(disparity)
## Loading a tree
data(BeckLee_tree)

## Removing  the tree from the dispRity object
(tree_data <- remove.tree(disparity))

## Extracting the tree
get.tree(tree_data) # is null

## Adding a tree to the disparity object
tree_data <- add.tree(tree_data, tree = BeckLee_tree)

## Extracting the tree
get.tree(tree_data) # is a "phylo" object


dispRity documentation built on Aug. 9, 2022, 5:11 p.m.