Skip to content
Prev 176164 / 398503 Next

number of zeros in a matrix -row by row

if 'M' is your matrix, then try this:

rowSums(M == 0)


I hope it helps.

Best,
Dimitris
onyourmark wrote: