Learn R Programming

rliger (version 1.0.0)

nnzeroGroups: nnzeroGroups

Description

Utility function to compute number of zeros-per-feature within group

Usage

nnzeroGroups(X, y, MARGIN = 2)

# S3 method for dgCMatrix nnzeroGroups(X, y, MARGIN = 2)

# S3 method for matrix nnzeroGroups(X, y, MARGIN = 2)

Arguments

X

matrix

y

group labels

MARGIN

whether observations are rows (=2) or columns (=1)

Value

Matrix of groups by features