difference between "distance" and "seglength" function
Hi @bartk, what is the idea behind having the distance
and the seglength
function? As they basically do the same...
The only difference that I can see is that, in the case of a moveStack, distance returns a list, and seglength one vector.
data(leroy)
str(distance(leroy))
# num [1:918] 6.38 5.61 12.67 9.65 11.73 ...
str(seglength(leroy))
# num [1:918] 6.38 5.61 12.67 9.65 11.73 ...
data(fishers)
str(seglength(fishers))
# num [1:9876] 6.38 5.61 12.67 9.65 11.73 ...
str(distance(fishers))
# List of 2
# $ Leroy : num [1:918] 6.38 5.61 12.67 9.65 11.73 ...
# $ Ricky.T: num [1:8957] 153.35 12.62 7.81 10.23 13.18 ...