R/get-data.R

##' get.data method
##'
##'
##' @rdname get.data-methods
##' @exportMethod get.data
setMethod("get.data", signature(object = "treedata"),
          function(object) {
              get_tree_data(object)
          })

##' @method [ treedata
##' @export
`[.treedata` <- function(x, i, j) {
    get.data(x)[i, j]
}


##' @method [[ treedata
##' @export
`[[.treedata` <- function(x, i) {
    get.data(x)[[i]]
}

Try the tidytree package in your browser

Any scripts or data that you put into this service are public.

tidytree documentation built on June 13, 2018, 9:03 a.m.