Re: [R] help with r package "trip"

2016-06-15 Thread Jim Lemon
Hi Alice, Have you tried creating a vector of the start position (xpos[1],ypos[1]): xstart<-rep(xpos[1],n) ystart<-rep(ypos[1],n) # where "n" is the number of subsequent positions in the trip max(trackDistance(xstart,ystart,xpos[2:n],ypos[2:n],...)) may then give you the value of the longest dist

[R] help with r package "trip"

2016-06-14 Thread Alice Domalik
Hi List, I'm relatively new to R, so apologies if my question is rather elementary. I'm working with some bird tracking data and I would like to calculate the maximum distance traveled from the colony. For the maximum distance traveled, I was going to use the function homedist(). However, whe