rmOtherSlt: Remove a user-defined slot

View source: R/a.R

rmOtherSltR Documentation

Remove a user-defined slot

Description

Returns a tree with a user-defined tree slot removed.

Usage

rmOtherSlt(tree, slt_nm)

Arguments

tree

TreeMan object

slt_nm

name of slot to be removed

Details

A user can specify a new slot using the setNdSlt() function or upon reading a tree. This can be removed using this function by specifying the name of the slot to be removed.

See Also

setNdOther, setNdsOther, https://github.com/DomBennett/treeman/wiki/set-methods

Examples


tree <- randTree(10)
vals <- runif(min = 0, max = 1, n = tree["nall"])
tree <- setNdsOther(tree, tree["all"], vals, "confidence")
tree <- updateSlts(tree)
summary(tree)
tree <- rmOtherSlt(tree, "confidence")
tree <- updateSlts(tree)
summary(tree)

ropensci/phylotaR documentation built on July 9, 2023, 3:17 p.m.