equa_dist_points_angle: point compression (2d)

Description Usage Arguments Value Examples

View source: R/distance-between.R

Description

Coverts list of point locations to a set of equally spaced points through linear interpolation.

Usage

1
equa_dist_points_angle(df, num_splits = 13)

Arguments

df

2 column data frame with all points (x,y)

num_splits

integer number of points for the path to be represented in

Value

new_compression data.frame (num_splits x 2) of points along the path equally spaced

Examples

1
2
3
4
5
library(dplyr)
my_df <- data.frame(x = 1:20) %>%
  mutate(y = x)
my_df_compression <- equa_dist_points_angle(my_df)
my_df_compression

skgallagher/EpiCompare documentation built on Sept. 14, 2021, 5:45 a.m.