You may have to make the two trajectories regular with the same interval. Package adehabitatLT has functions to do this.
Cheers Li ________________________________________ From: R-sig-ecology [r-sig-ecology-boun...@r-project.org] on behalf of Sarah Goslee [sarah.gos...@gmail.com] Sent: Thursday, 23 July 2015 12:02 AM To: André Zehnder Cc: r-sig-ecology@r-project.org Subject: Re: [R-sig-eco] Compute the distance between the trajectories of two animals with varying sampling intervals Try the adehabitatLT package. On Wed, Jul 22, 2015 at 9:41 AM, André Zehnder <andrezehn...@hotmail.com> wrote: > Hi list, > > > > I want to compute the distances between two trajectories that consist of a > sequence of point measurements. The trajectories do not have the same length > or sampling interval. So, while for animal A, there is a data point at 15.00 > p.m. and another at 15.38 p.m, animal B might have data points at 14.56 p.m. > > and 17.02 p.m. > > > > A possible approach would be to connect these point series to trajectories > and then calculate the distance between the two trajectories at the sampled > positions of one trajectory (take the sampled position of the second > trajectory that is temporally closest). Are there any packages in R (or > tools outside of R) that allow me to do this? The support of other distances > than the Euclidean one (e.g. Fr chet) would be an advantage. > > > > Best regards, > > Andre > > -- Sarah Goslee http://www.functionaldiversity.org _______________________________________________ R-sig-ecology mailing list R-sig-ecology@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- This email is intended for the addressee(s) named and may contain confidential and/or privileged information. If you are not the intended recipient, please notify the sender and then delete it immediately. Any views expressed in this email are those of the individual sender except where the sender expressly and with authority states them to be the views of the NSW Office of Environment and Heritage. PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL _______________________________________________ R-sig-ecology mailing list R-sig-ecology@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-ecology