purity {CellaRepertorium} | R Documentation

## Calculate number of cluster-subject singletons for the purposes of permutation testing

### Description

Calculate number of cluster-subject singletons for the purposes of permutation testing

### Usage

    purity(cluster_idx, subject)

### Arguments

`cluster_idx` | factor-like cluster variable
`subject` | factor-like subject

### Value

average number of singletons

### See Also

`cluster_permute_test()`

### Examples

    message("see example(cluster_permute_test)")

[Package CellaRepertorium version 1.2.0 Index]