build.submatrix {HEMDAG}R Documentation

Build submatrix

Description

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

Usage

build.submatrix(ann, n)

Arguments

ann

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

n

an integer number representing the number of annotations to be pruned.

Value

An annotation matrix having only those terms with more than n annotations.

Examples

data(labels);
subm <- build.submatrix(L,5);

[Package HEMDAG version 2.7.4 Index]