R/show.R

# SHOW METHODS
#' @include AllClasses.R
NULL

# MCMC =========================================================================
setMethod(
  f = "show",
  signature = "MCMC",
  definition = function(object) {
    cat(
      sprintf("<%s>", class(object)),
      sprintf("- Number of events: %d", ncol(object)),
      sprintf("- Number of MCMC samples: %s", nrow(object)),
      sep = "\n"
    )
  }
)

# PhasesMCMC ===================================================================
setMethod(
  f = "show",
  signature = "PhasesMCMC",
  definition = function(object) {
    cat(
      sprintf("<%s>", class(object)),
      sprintf("- Number of phases: %d", ncol(object)),
      sprintf("- Number of MCMC samples: %s", nrow(object)),
      sep = "\n"
    )
  }
)

Try the ArchaeoPhases package in your browser

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

ArchaeoPhases documentation built on June 22, 2024, 9:24 a.m.