Hi again,

I am still working on class object ltraj. Here you have the summary of my
trajectory:

> summary(ltrj.obj)    id burst nb.reloc NAs          date.begin            date.end
1 Alma  Alma      136   0 2010-05-01 02:00:56 2010-06-30 02:00:41


and the output of the head function:

> head(ltrj.obj[[1]])        x       y                date   dx   dy       dist    dt    R2n abs.angle  rel.angle
1 1593865 7459671 2010-05-01 02:00:56    0    0   0.000000 32398
0        NA         NA
2 1593865 7459671 2010-05-01 11:00:54   -2    3   3.605551 32399
0  2.158799         NA
3 1593863 7459674 2010-05-01 20:00:53  202 -382 432.120354 21632
13 -1.084378  3.0400080
4 1594065 7459292 2010-05-02 02:01:25 -241 -303 387.156299 32493
183641 -2.242714 -1.1583352
5 1593824 7458989 2010-05-02 11:02:58 -101  367 380.644191 32276
466805  1.839353 -2.2011192
6 1593723 7459356 2010-05-02 20:00:54  188  293 348.127850 21590
119389  1.000322 -0.8390307


I am trying to select only a part of the trajectory stored in this ltraj
class object, following an example from Calenge in the package
'adehabitatLT':

lim <- as.POSIXct(strptime(c("28/05/2010 02:00:40", "30/06/2010 02:00:41"),
"%d/%m/%Y %H:%M:%S"))
ltrj.bis <- gdltraj(ltrj.obj, min=lim[1], max=lim[2], type="POSIXct" )

but for some reasons it does not work properly. I got this error message
that I do not understand:

Error in `[.default`(res, , names(res) %in% which, drop = FALSE) :
  number of dimensions incorrect


Anyone has an idea about why it doesn't work?
Thankx a lot.

Cheers

-- 
Dylann Kersusan
Master Biodiversity and Conservation
Zoology dept. Stockholm University
--
Grimsö Wildlife Research Center
Ecology dept. SLU
Riddarhyttan-Sweden

	[[alternative HTML version deleted]]

