R/print.R

#' Print for SMARTp class
#'
#' @param x SMARTp object to print
#' @param ... Other parameters for print
#'
#' @method print SMARTp
#'
#' @export

print.SMARTp <- function(x, ...){
  cat('Sample size: \n', sprintf("\t The sample size required is %s.", ceiling(x$N)))
}

Try the SMARTp package in your browser

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

SMARTp documentation built on May 17, 2019, 9 a.m.