xy_pos: Get xy position of a value in a matrix Helper function for...

View source: R/locate_image.R

xy_posR 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)


screenshot documentation built on June 22, 2024, 10:30 a.m.