R/printsplit.R

Defines functions printsplit

Documented in printsplit

printsplit <- function(object) {
  if (!inherits(object, "htt"))
    stop("Not a legitimate \"htt\" object")
  ff <- object$frame
  leaf <- which(ff$isleaf == 1)
  ff[leaf, c("leftChild", "rightChild", "pval")] <- "*"
  ff[is.na(ff$var), "var"] <- "*"
  print(ff)
}

Try the HTT package in your browser

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

HTT documentation built on March 31, 2023, 5:40 p.m.