I have a very large (about 91 million non-zero entries) sparseMatrix() in R that looks like:
> myMatrix
a b c
a . 1 2
b 1 . .
c 2 . .
I would like to convert it to a triangular matrix (upper or lower), but when I try myMatrix = myMatrix * lower.tri(myMatrix) there is an error that the 'problem is too large' for lower.tri(). Wondering if anyone might know of a solution. Thanks for any help!