db.getsample {RGeostats}R Documentation

Rank(s) of closest sample(s)

Description

Rank(s) of closest sample(s)

Usage

db.getsample(db, x, y, pos.x = 1, pos.y = 2, ref = NA, verbose = FALSE)

Arguments

db

The db-class structure containing the sample(s) to be identified

x

Vector of coordinates along X

y

Vector of coordinates along Y

pos.x

Gives the rank of the coordinate used on the abscissae axis.

pos.y

Gives the rank of the coordinate used on the ordinate axis.

ref

Vector (of space dimension) which gives the indices of the reference corner point. The extracted plane contains the reference corner point.

verbose

When TRUE, the coordinates of the closest sample(s) are displayed

Value

A vector containing the ranks (starting from 1) of the closest sample to the input coordinates.


[Package RGeostats version 11.1.1 Index]