View source: R/f - Interpolate.R
f_interpolate | R Documentation |
Interpolate between points when their distance exceeds threshold.
f_interpolate(
df.input,
v.coord.point = c("point.x", "point.y"),
n.threshold.distance
)
df.input |
—– |
v.coord.point |
Vector with names of x- and y-coordinate (default: c("point.x", "point.y")). |
n.threshold.distance |
Distance between interpolated points will not exceed n.threshold.distance. |
-
Data frame with interpolated coordinates.
Pieter Overdevest
df.output <- f_interpolate(
df.input = tibble(
point.x = c(110000, 130000, 150000, 130000, 110000),
point.y = c(400000, 430000, 400000, 370000, 400000)
),
v.coord.point = c("point.x", "point.y"),
n.threshold.distance = 500
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.