R/as_data_frame.R

#' Coerce an \pkg{ouch} object to a data frame
#'
#' @name as_data_frame
#' @rdname as_data_frame
#' @family methods for ouch trees
#' @include ouchtree.R brown.R hansen.R
#' @inheritParams base::as.data.frame
#' 
NULL

#' @rdname as_data_frame
#' @export
as.data.frame.ouchtree <- function (x, ...) as(x,"data.frame")

#' @rdname as_data_frame
#' @export
as.data.frame.browntree <- function (x, ...) as(x,"data.frame")

#' @rdname as_data_frame
#' @export
as.data.frame.hansentree <- function (x, ...) as(x,"data.frame")

Try the ouch package in your browser

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

ouch documentation built on April 25, 2023, 9:10 a.m.