xy2ID: Convert the 'xy' (X,Y) into Index in 'coords' 'xy2ID'

View source: R/Func_Misc.R

xy2IDR Documentation

Convert the xy (X,Y) into Index in coords xy2ID

Description

Convert the xy (X,Y) into Index in coords xy2ID

Usage

xy2ID(xy, coord)

Arguments

xy

coordinate (x,y), subset of coords

coord

coordinate set

Value

Index in coodinate set

Examples

coord = matrix(rnorm(10), 5,2)
xy = coord[c(5,1,3),]
xy2ID(xy, coord)

SHUD-System/SHUDtoolbox documentation built on Nov. 27, 2024, 5:54 a.m.