Learn R Programming

Canopy (version 1.3.0)

sampsna.cluster: To sample positions of SNA clusters

Description

To sample SNA cluster positions along the tree. Used in canopy.sample.cluster and canopy.sample.cluster.nocna.

Usage

sampsna.cluster(tree)

Arguments

tree

input tree

Value

Newly sampled matrix specifying positions of SNA clusters (start and end node).

Examples

Run this code
# NOT RUN {
    data(MDA231_tree)
    MDA231_tree$sna.cluster=initialsna(MDA231_tree,paste('cluster',1:4,sep=''))
    sampsna.cluster(MDA231_tree)
# }

Run the code above in your browser using DataLab