powered by
locate_ndl_in_hay()
Get xy position of a value in a matrix Helper function for locate_ndl_in_hay().
xy_pos(mt, val)
A numeric pairs of xy location.
A matrix
nrow <- 4 mt <- matrix(1:12, nrow = nrow) xy_pos(mt, 5)
Run the code above in your browser using DataLab