Remove columns from an interaction matrix where all values are zero.
Arguments
- mat
A matrix containing interaction data.
- na.rm
Logical. If TRUE, NA values will be ignored for deciding if a column should be removed. If FALSE, columns having NA values will never be removed.