closest.node {RShinyAux}R Documentation

Returns the coordinates of the grid node closest to the Target point

Description

Returns the coordinates of the grid node closest to the Target point

Usage

closest.node(grid, x, y)

Arguments

grid

The db-class structure organized as a regular 2-D grid. This procedure returns the coordinates of the grid node which is the closest to the Target location specified by the arguments 'x','y'.

x,y

Coordinates of the Target point.

Value

A list containing the two coordinates of the closest grid node


[Package RShinyAux version 1.0.0 Index]