Calculates the distance and direction between each point of a path

dist_along_path_direction(data_df)

Arguments

data_df

(n x d) data.frame, assumes rows are ordered in path

Value

distance

vector of distances beween points (n - 1)

direction

data.frame of direction between points ((n - 1) x d)