do.submatrix: Build submatrix

Description Usage Arguments Value Examples

View source: R/graph.utility.R

Description

Terms having less than n annotations are pruned. Terms having exactly n annotations are discarded as well.

Usage

1
do.submatrix(ann, n)

Arguments

ann

the annotation matrix (0/1). Rows are examples and columns are classes.

n

integer number of annotations to be pruned.

Value

Matrix of annotations having only those terms with more than n annotations.

Examples

1
2
data(labels);
subm <- do.submatrix(L,5);

gecko515/HEMDAG documentation built on Oct. 18, 2019, 6:34 a.m.