Skip to content
Prev 385632 / 398503 Next

Function that finds elements from matrix, and saves the indices of the elements to another matrix

Hello,

This is simple:


which(A == 1, arr.ind = TRUE)


Hope this helps,

Rui Barradas

?s 12:03 de 14/09/20, Tuomas Koponen escreveu: