Skip to contents

Aggregation matrix mapping rows (bins) to groups

Usage

group_indicator(groups)

Arguments

groups

integer/character group id per row (NA = dropped)

Value

sparse groups x rows indicator matrix (dgCMatrix) with group labels as rownames