Learn R Programming

HEMDAG (version 2.6.1)

do.submatrix: Build submatrix

Description

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

Usage

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

Run this code
# NOT RUN {
data(labels);
subm <- do.submatrix(L,5);
# }

Run the code above in your browser using DataLab