R/newnode.R

Defines functions newnode

newnode <- function(ruleset, j, data){
  nnn <- ncol(ruleset)
  lmatr <- ruleset[,-j]
  if (nnn > 2) logivec <- apply(lmatr, 1, all)
  else  logivec <- lmatr       
  bnode <- data[logivec==T,]
  return(bnode)
}

Try the Harvest.Tree package in your browser

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

Harvest.Tree documentation built on May 2, 2019, 3:31 p.m.