Nothing
#' @title
#' Update a tree with new subtrees
#'
#' @description
#' Update a tree with new subtrees
#'
#' @param object
#' A tree to be updated.
#'
#' @param subtrees
#' A list of trees.
#'
#' @param ...
#' Additional arguments to be passed as attributes to each
#' node of the tree.
#'
#' @importFrom rlist list.merge
#' @export
#'
update.rtree <-
function(object,
subtrees = NULL,
...)
{
properties = list(...)
if (length(properties) == 0L) {
at = attributes(object)
} else {
at = rlist::list.merge(attributes(object), list(...))
}
if (!is.null(subtrees)) {
object = subtrees
}
attributes(object) = at
if (!is.tree(object)) {
stop("incorrect 'subtrees' argument")
}
object
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.