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

Description Usage Arguments Value Examples

View source: R/Func_Misc.R

Description

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

Usage

1
xy2ID(xy, coord)

Arguments

xy

coordinate (x,y), subset of coords

coord

coordinate set

Value

Index in coodinate set

Examples

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

happynotes/PIHMgisR documentation built on Jan. 25, 2020, 9:51 p.m.