col_positions: For each row in a matrix, identify which columns have a

View source: R/utilities.R

col_positionsR Documentation

For each row in a matrix, identify which columns have a

Description

For each row in a matrix, identify which columns have a

Usage

col_positions(x)

Arguments

x

a matrix of 0s and 1s

Value

a list of nrow(x) where each element is an integer vector of column positions that have a 1 for each matrix row.


novisci/gofl documentation built on March 28, 2022, 1:17 a.m.