R/Data.R

Defines functions Data.outForest Data.default Data

Documented in Data Data.default Data.outForest

#' Extracts Data
#'
#' Extracts data with optionally replaced outliers from object of class 'outForest'.
#'
#' @param object An object of class 'outForest'.
#' @param ... Arguments passed from or to other methods.
#' @return A \code{data.frame}.
#' @export
#' @examples
#' x <- outForest(iris)
#' head(Data(x))
Data <- function(object, ...) {
  UseMethod("Data")
}

#' @describeIn Data Default method not implemented yet.
#' @export
Data.default <- function(object, ...) {
  stop("No default method available yet.")
}

#' @describeIn Data Extract data from outForest object.
#' @export
Data.outForest <- function(object, ...) {
  object$Data
}

Try the outForest package in your browser

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

outForest documentation built on Jan. 31, 2022, 9:07 a.m.