R package for handling and analyzing trajectories