groupCount {goCluster} | R Documentation

## Count the number of clusters

### Description

Counts the number of elements in a tree (list of lists).

### Usage

    groupCount(X)

### Arguments

`X` | A tree (list of lists) of clusters

### Details

Traverses a tree from the top to the leave nodes and counts the number of leave nodes or elements.

### Value

The number of elements in the tree

### Author(s)

Gunnar Wrobel, http://www.gunnarwrobel.de.

### See Also

`clusterSignifFDR-class`

### Examples

    set.seed(1000)

    data(benomylsetupsmall)

    a <- new("goCluster")

    execute(a) <- benomylsetupsmall

    ## Counts the number of clusters that have been analyzed in
    ## the statistical module of goCluster. This number is the
    ## product of the number of clusters in a single clustering
    ## and the number of randomized repeats that were analyzed
    ## for the FDR analysis
    groupCount(a@sign@stat@statset)

[Package goCluster version 1.0.3 Index]