View source: R/dispRity.utilities.R
make.dispRity | R Documentation |
dispRity
.Creating an empty dispRity
object from a matrix
make.dispRity(data, tree, call, subsets)
fill.dispRity(data, tree, check)
remove.dispRity(data, what)
data |
A |
tree |
Optional, a |
call |
Optional, a |
subsets |
Optional, a |
check |
Logical, whether to check the data ( |
what |
Which elements to remove. Can be any of the following: |
When using remove.dispRity
, the function recursively removes any other data depending on "what"
.
For example, for a data with disparity calculated for bootstrapped subsets, removing the subsets (what = "subsets"
) also removes the bootstraps and the disparity data.
But removing the bootstraps (what = "bootstraps"
) removes only the bootstraps draws and the disparity relating to the bootstraps (but keeps the subsets and the non-bootstrapped disparity values).
Thomas Guillerme
## An empty dispRity object
make.dispRity()
## Still an empty dispRity object (with a matrix)
(empty <- make.dispRity(data = matrix(rnorm(12), ncol = 3)))
## A dispRity object with a matrix of 4*3
fill.dispRity(empty)
## A dispRity object with a tree
my_tree <- rtree(4, tip.label = c(1:4))
fill.dispRity(empty, tree = my_tree)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.