Description Usage Arguments Value
This is internal code using RANN::nn2
(faster).
1 2 3 4 5 6 7 8 | get_closest_nn(
border_points,
inner_points,
delta,
xrange = NULL,
yrange = NULL,
gridbreaks = 100
)
|
border_points |
data.frame of points from delta ball approach that are "border points" |
inner_points |
data.frame of points from delta ball approach that are interior points. |
delta |
float, size of delta ball radius |
xrange |
vector, ordered values to examine in the x dimension (default is NULL - will then be created using gridbreaks) |
yrange |
vector, ordered values to examine in the y dimension (default is NULL - will then be created using gridbreaks) |
gridbreaks |
int, number of gridpoint in x and y dimensions if xrange or yrange is not provided |
data frame, with expand.grid
of xrange, yrange in columns
x
and y
and a column z
that indicates if it is: (1)
not within delta to border points or inner_points, (2) if closest to
border_points and (3) if closest to an inner_point.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.