R/print.ecoBD.R

Defines functions print.ecoBD

#' @export
print.ecoBD <- function(x, digits = max(3, getOption("digits") -3),
                        ...) {
  cat("\nCall:\n", deparse(x$call), "\n\n", sep="")
  
  cat("Aggregate Lower Bounds (Proportions):\n")
  print.default(format(x$aggWmin, digits = digits), print.gap = 2, quote =
                FALSE)
  cat("\nAggregate Upper Bounds (Proportions):\n")
  print.default(format(x$aggWmax, digits = digits), print.gap = 2, quote =
                FALSE)
  
  if (!is.null(x$aggNmin)) {
    cat("\nAggregate Lower Bounds (Counts):\n")
    print.default(format(x$aggNmin, digits = digits), print.gap = 2, quote =
                  FALSE)
    cat("\nAggregate Upper Bounds (Counts):\n")
    print.default(format(x$aggNmax, digits = digits), print.gap = 2, quote =
                  FALSE)
  }
  
  cat("\n")
  invisible(x)
}

Try the eco package in your browser

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

eco documentation built on Nov. 4, 2022, 1:07 a.m.