Learn R Programming

profExtrema (version 0.2.2)

getClosePoints: Find close points

Description

Obtain points close in one specific dimension

Usage

getClosePoints(x, allPts, whichDim)

Value

the index in allPts (row number) of the closest point in allPts to x along the whichDim dimension

Arguments

x

one dimensional point

allPts

dataframe containing a list of d dimensional points

whichDim

integer defining the dimension of x

Author

Dario Azzimonti