R/print.R

Defines functions print.gho

Documented in print.gho

#' @rdname man-gho
#' @export
print.gho <- function(x, n = options()$rgho.n, ...) {
  if (n == Inf) {
    n <- nrow(x)
  }

  cat(sprintf("A 'GHO' object of %i elements.\n\n", nrow(x)))

  print.data.frame(head(x,n), ...)

  if (n < nrow(x)) {
    cat(sprintf("...\n\n(Printing %i first elements.)\n", n))
  }

}

Try the rgho package in your browser

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

rgho documentation built on Aug. 9, 2023, 5:09 p.m.