R/print_results.R

Defines functions print.hce_results

Documented in print.hce_results

#' A print method for `hce_results` objects
#'
#' @param x an object of class `hce_results`.
#' @param ... additional arguments to be passed to [base::print()] function.
#' @return no return value, called for printing.
#' @export
#'
#' @examples
#' print(powerWO(N = 1000, WO = 1.2))
print.hce_results <- function(x, ...){
  x <- attr(x, "res")
  base::print(x$result, ...)
  
}

Try the hce package in your browser

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

hce documentation built on Oct. 16, 2024, 9:06 a.m.