Get xy position of a value in a matrix Helper function for locate_ndl_in_hay().
Source: R/locate_image.R
xy_pos.RdGet xy position of a value in a matrix
Helper function for locate_ndl_in_hay().
Examples
nrow <- 4
mt <- matrix(1:12, nrow = nrow)
xy_pos(mt, 5)
#> [[1]]
#> [1] 1 2
#>