dapply function

apply a function to each part of a trackdata object