R/print.Tenv.R

Defines functions print.Tenv

#' @method print Tenv
#' @export
#' @importFrom stats coef

print.Tenv <- function(x, ...){
  cat("Call:\n", paste(deparse(x$call), sep = "\n", collapse = "\n"),
      "\n\n", sep = "")
  cat("Coefficients:\n")
  cf <- stats::coef(x)
  if (!is.null(cf)) {
    print(cf)
  }
  else cat("No coefficients\n")
  cat("\n")
  invisible(x)
}

Try the TRES package in your browser

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

TRES documentation built on Oct. 20, 2021, 9:06 a.m.