f_interpolate: Interpolate between points

View source: R/f - Interpolate.R

f_interpolateR Documentation

Interpolate between points

Description

Interpolate between points when their distance exceeds threshold.

Usage

f_interpolate(
  df.input,
  v.coord.point = c("point.x", "point.y"),
  n.threshold.distance
)

Arguments

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.

Details

-

Value

Data frame with interpolated coordinates.

Author(s)

Pieter Overdevest

Examples

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
)

pieterov/generaltoolbox documentation built on Jan. 25, 2025, 10:32 a.m.