File: print.ecoBD.R

package info (click to toggle)
r-cran-eco 4.0-1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 772 kB
  • sloc: ansic: 4,214; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 818 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)
}