xy_pos {screenshot} | R Documentation |
Get xy position of a value in a matrix
Helper function for locate_ndl_in_hay()
.
Description
Get xy position of a value in a matrix
Helper function for locate_ndl_in_hay()
.
Usage
xy_pos(mt, val)
Arguments
mt |
A matrix |
val |
A matrix |
Value
A numeric pairs of xy location.
Examples
nrow <- 4
mt <- matrix(1:12, nrow = nrow)
xy_pos(mt, 5)
[Package screenshot version 0.9.1 Index]