Calculates the distance and direction between each point of a path

distanglepath_df(df)

Arguments

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)