equa_dist_points_direction: point compression

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_direction(df, num_splits = 13)

Arguments

df

column data frame with all points (each row a point)

num_splits

integer number of points for the path to be represented in

Value

new_compression data.frame (num_splits x d) 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_direction(my_df)
my_df_compression

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