[R-sig-eco] redisltraj with u=1 (adehabitatLT)

Sebastian P. Luque spluque at gmail.com
Sat Mar 16 18:58:02 CET 2013


Hi,

I'm having trouble understanding why the following call to redisltraj()
with u=1 doesn't return the full input ltraj object (adehabitatLT):

---<--------------------cut here---------------start------------------->---
R> n <- 51
R> (crw <- simm.crw(date=seq(n), r=0.5))

*********** List of class ltraj ***********

Type of the traject: Type II (time recorded)
Regular traject. Time lag between two locs: 1 seconds

Characteristics of the bursts:
  id burst nb.reloc NAs          date.begin            date.end
1 A1    A1       51   0 1969-12-31 18:00:01 1969-12-31 18:00:51


 infolocs provided. The following variables are available:
[1] "pkey"
R> redisltraj(crw, 1, type="time", samplex0=TRUE)

*********** List of class ltraj ***********

Type of the traject: Type II (time recorded)
Regular traject. Time lag between two locs: 1 seconds

Characteristics of the bursts:
  id burst nb.reloc NAs          date.begin            date.end
1 A1    A1       50   0 1969-12-31 18:00:01 1969-12-31 18:00:50


 infolocs provided. The following variables are available:
[1] "pkey"
R> sessionInfo()
R version 2.15.3 (2013-03-01)
Platform: x86_64-pc-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_CA.UTF-8       LC_NUMERIC=C               LC_TIME=en_CA.UTF-8        LC_COLLATE=en_CA.UTF-8     LC_MONETARY=en_CA.UTF-8    LC_MESSAGES=en_CA.UTF-8   
 [7] LC_PAPER=C                 LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] adehabitatLT_0.3.10 CircStats_0.2-4     boot_1.3-7          MASS_7.3-23         adehabitatMA_0.3.6  ade4_1.5-1          sp_1.0-6            slmisc_0.9.3        latticeExtra_0.6-24
[10] RColorBrewer_1.0-5  lattice_0.20-13    

loaded via a namespace (and not attached):
[1] compiler_2.15.3 grid_2.15.3     tools_2.15.3   
---<--------------------cut here---------------end--------------------->---

Notice that the new 'nb.reloc' is lacking the last relocation of the
input ltraj.  The argument 'addbit' is irrelevant, since type="time".
Am I missing something?

Cheers,

-- 
Sebastian P. Luque, Ph.D.
Postdoctoral Research Fellow
Room 367, Duff Roblin Building
Department of Biological Sciences
University of Manitoba
Winnipeg, MB R3T 2N2
Canada
Tel.   +1 (204) 221-5924
Mobile +1 (204) 299-2429
Fax    +1 (204) 272-3386
http://www.ucs.mun.ca/~sluque



More information about the R-sig-ecology mailing list