Skip to content
Prev 3552 / 7420 Next

Ltraj object without date.end

It looks to me that there must be a missing value in your date vector.
It's reproducible with a simple example modified from ?as.ltraj:

  data(capreochiz)

     ## Create an object of class "ltraj"
     cap <- as.ltraj(xy = capreochiz[,c("x","y")], date =
c(capreochiz$date[-nrow(capreochiz)], NA),
                     id = "Roe.Deer", typeII = TRUE,
                     infolocs = capreochiz[,4:8])

summary(cap)

        id    burst nb.reloc NAs          date.begin date.end
1 Roe.Deer Roe.Deer     2355   0 2004-02-14 03:02:18     <NA>

So presumably you do have some missing values, perhaps the final lines
in the file are empty rows from Excel? (It's common).

Try any(is.na(Da)) to check.

Cheers, Mike.
On Tue, Feb 5, 2013 at 2:45 PM, John McEvoy <john.mcevoy at deakin.edu.au> wrote: