1234 adsf
unread,Jan 29, 2024, 4:17:22 PM1/29/24Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ctmm R user group
Dear Christen,
First of all, thank you for your work to make the ctmm package available.
I am writing to ask your help regarding an error that I ran into while analyzing our GPS tracing data. Normally it works without problems for several individuals of animals, but for one of them I ran into the below error:
ctmm_speed <- speed(telemetry_akde,FIT1_pHREML)
Error in sqrt(diff(data$x)^2 + diff(data$y)^2)/DT/SPD non-numeric argument to binary operator
The data that causes the error was collected with the same method as all the rest that work well with the calculations. For troubleshooting, I have tried two things:
I tried to find the part of code that gives the eror. It might be speed.r line 249 (FRAC <- sqrt(diff(data$x)^2+diff(data$y)^2)/DT / SPD), but it was too complicated for me to track down if it really is, and how exactly the problem occurs.
Another thing I tried was to narrow down the input data to identify the problematic content in it. This attempt was also not successful, as I got a differen error when I eliminated the first half of my data and ran the script. (I saw the progress bar was at 53% when the error happened, so I assumed it might have to do with some data quality issue at about the 53% section of my data.) Whe I did this, I got the "Movement model is fractal" error.
What could be the best troubleshooting steps to solve this?
Thank you!
Máté Pölös