R/predx_oop.R

Defines functions print.predx

Documented in print.predx

# This script provides print and plotting methods for the `predx` class.

# printing ------

#' Print a predx object.
#'
#' @description prints the heading of the prediction table.
#' @param x a `predx` object.
#' @param ... extra arguments, currently none.
#' @return nothing, called for its side effects.
#' @export

  print.predx <- function(x, ...) {

    stopifnot(is_predx(x))

    print(x$data)

  }

# END -------
PiotrTymoszuk/caretExtra documentation built on Oct. 15, 2023, 10:03 p.m.