R/findneighbor.R

Defines functions findneighbor

findneighbor<-function(lst,node)
{
mu<-multitree(lst$parent)

no<-lst$parent[node]
while ((no!=0) && (mu$sibling[mu$child[no]]==0)){
     no<-lst$parent[no]
}


return(no)
}

Try the denpro package in your browser

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

denpro documentation built on May 2, 2019, 8:55 a.m.