Skip to content
Prev 1228 / 7420 Next

as.ltraj and fpt from AdeHabitat

Dear Samantha,

Sorry I just found the thread now. Do you still have this problem? If 
your problem comes from the ltraj itself (as.ltraj function), you need 
to provide more details about what do you have in FPT, dddate and tttime 
(although the dates seems fine regarding your outputs), so that we can 
understand what's going on.

The sample you showed for the ltraj looks like the last relocation of a 
trajectory, with NAs for every movement parameter (but a R2n = 0 would 
indicate that this is the exact same localisation as the first one).

Please provide the output of:

str(FPT)
head(FPT)
str(dddate)
head(dddate)
str(tttime)
head(tttime)

In addition to David's comment on fpt, it would probably be a good idea 
to project your coordinates if they are initially in long/lat (use 
package rgdal for this) before building the ltraj (dx, dy, dist, ... 
make more sense to me in projected units, e.g. meters).

Cheers,
Mathieu.



Pinaud David a ?crit :