This function identifies the rows in a matrix that have a sum of zero across a specified set of columns.
Usage
getEmptyRows(matrix, colToCheck = 1:8)
Arguments
- matrix
A numeric matrix where rows represent observations and columns represent variables.
- colToCheck
An integer vector specifying which columns to check for zero sums. Default is 1:8.
Value
An integer vector of row indices where the sum across the specified columns is zero.