R/clusterId2SegmentIds.R

clusterId2SegmentIds<-function
### Convert cluster IDs to indices of dendrogram segments.
##keyword<<internal
(
    ids ##<< cluster IDs
) {
    return(rep(3*(ids-1),each=3)+(1:3))
    ### segment IDs
}

Try the idendr0 package in your browser

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

idendr0 documentation built on May 2, 2019, 5:13 a.m.