R/print.dice.R

Defines functions print.dice

Documented in print.dice

#' Print method for \code{dice} objects.
#'
#' Prints a summary of a \code{dice} object.
#'
#' @param x Object of class \code{dice}.
#' @param ... Ignored for now.
#'
#' @export
print.dice = function(x, ...){
	assert_class(x, "dice")
	assert_list(list(...))
	cat("dice object generated on data with n = ", nrow(x$d_ice_curves), " for predictor \"", x$predictor, "\"\n", sep = "")
	cat("predictor considered ", ifelse(x$nominal_axis, "discrete", "continuous"), ", logodds ", ifelse(x$logodds, "on", "off"), "\n", sep = "")
}

Try the ICEbox package in your browser

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

ICEbox documentation built on Jan. 12, 2026, 9:06 a.m.