R/print.R

Defines functions print.cumhist

Documented in print.cumhist

#' Prints out cumhist object
#'
#' @param x A [cumhist][cumhist-class()] object
#' @param ... Unused
#' @return Nothing, console output only.
#'
#' @importFrom glue glue
#' @export
#'
#' @examples
#' \donttest{
#' br_fit <- fit_cumhist(br_singleblock, state="State", duration="Duration", fixed_effects="Time")
#' br_fit
#' }

print.cumhist <- function(x, ...){
  cat('Call: ')
  print(x$Call)
  cat('\n')

  cat(glue::glue('Family: {x$family}\n\n'))
}

Try the bistablehistory package in your browser

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

bistablehistory documentation built on Sept. 13, 2023, 5:07 p.m.