R/repaint.R

Defines functions repaint

Documented in repaint

repaint <-
function(otree,regshifts,stem=TRUE){
	subtrees<-branches<-regshifts[order(otree@times[match(names(regshifts),otree@nodes)])]
	if(stem==FALSE)branches<-branches[which(as.numeric(names(branches))>(otree@nnodes-otree@nterm))]
	regs<-paint(otree,subtree=subtrees,branch=branches)
	regs[1]<-regshifts[1]
	regs<-factor(regs)
	regs
	}

Try the surface package in your browser

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

surface documentation built on Dec. 18, 2020, 5:08 p.m.