Hello,
to call each variable separately, you can coerce your sp object back to a
dataframe. The code below should to the job:
DF.utm <- as.data.frame(SP.utm)
long.diff<-diff(DF.utm$Long)
Nicolas
Tim Clark wrote:
>
>
> Dear List,
>
> I am trying to determine the speed an animal is traveling
If your goal is to get the distance between geographic points, you might try
computing the distance along the "great circle arc" and forget about
projection. Several packages have functions that do this. See
https://stat.ethz.ch/pipermail/r-help/2007-October/144546.html.
hope that helps,
Ian
Dear List,
I am trying to determine the speed an animal is traveling on each leg of a
track. My data is in longitude and latitude, so I am using the package rgdal
to convert it into a spatial points data frame and transform it to UTM. I
would then like to find the difference between successi
3 matches
Mail list logo