Skip to content
Prev 6957 / 63468 Next

Feature Request: "matrix[1:10,1:10, block=F] <- 1:10"

"Warnes, Gregory R" wrote:
Yes, you need to provide the indices as matrix, like:

m[cbind(index_i,index_j)]

(BTW: Hou do you manage to get index_i <- c(...) properly working? My R
version still treats _ as a replacement for <-)