Skip to content
Prev 176198 / 398503 Next

number of zeros in a matrix -row by row

well, you said you tried

rowSums(M == 0)

but according to the error message it seems that you tried

rowSums[M == 0]

Try to use parenthesis '(' instead of brackets '['.


Best,
Dimitris
onyourmark wrote: