Normalize length of segments contained in a data.frame like object returned by get_trackdata
data.frame
get_trackdata
Useful links