Error in dimnames(COV)

34 views
Skip to first unread message

valentin...@gmail.com

unread,
Aug 18, 2020, 3:52:17 AM8/18/20
to ctmm R user group
I am trying to run the code below
from "Scale-insensitive estimation of speed and distance traveled from animal tracking data":

data("pelican")
gps_data  <- pelican [[2]]

uere(gps_data) <- 10

GUESS  <- ctmm.guess(gps_data ,interactive = FALSE ,CTMM = ctmm(tau = c(Inf,2 %#% "hours"),range = FALSE))
GUESS$error  <- TRUE
GPS_FIT  <- ctmm.select(gps_data ,GUESS)


but when I try to run ctmm.select
the following error is reported:
Error in dimnames(COV) <- list(NAMES, NAMES) : 
length of 'dimnames' [1] not equal to array extent


Do you have any suggestions?
  
  Many thanks,

Valentina  

Christen Fleming

unread,
Aug 18, 2020, 2:15:52 PM8/18/20
to ctmm R user group
Hi Valentina,

This bug is fixed in the development branch on GitHub, which you can install via devtools::install_github("ctmm-initiative/ctmm")

However, looking at the pelican data, for me the GPS data is actually pelican$gps or pelican[[1]]

Best,
Chris

valentin...@gmail.com

unread,
Aug 19, 2020, 3:27:14 AM8/19/20
to ctmm R user group
Hi Chris,
thank you very much for your response.

Best wishes, 
Valentina
Reply all
Reply to author
Forward
0 new messages