R/print.optmatch.dlist.R

Defines functions print.optmatch.dlist

print.optmatch.dlist <- function(x, ...)
{
  if (is(x, "optmatch.dlist")) {
    warning("The use of 'optmatch.dlist' objects created by 'mdist()' is deprecated.\nPlease use 'match_on()' instead.")
  }

  cl <- match.call()
  m <- match('digits',names(cl),0)
  if (m) DIGITS <- cl[[m]] else DIGITS <- 2
  print(lapply(x, function(X) signif(X, DIGITS)))
}
markmfredrickson/optmatch documentation built on Nov. 24, 2023, 3:38 p.m.