Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Issues importing error ellipses with trilateralized data

47 views
Skip to first unread message

steveh...@gmail.com

unread,
Jan 16, 2025, 3:41:10 PMJan 16
to ctmm R user group
Hi Chris,

I am trying to import location data estimated from a UHF node array. I used a similar trilaterization method as described in this discussion. I created the Argos.semi.major, Argos.semi.minor, and Argos.orientation columns using the methods from code from that conversation.

When I try to import using as.telemetry() I get the following error:
Error in `$<-.data.frame`(`*tmp*`, "COV.minor", value = numeric(0)) : replacement has 0 rows, data has 220

When I remove the Argos columns, I can successfully import the data.

I've attached code and data that replicates the issue on my machine (using the Github package and R 4.4.1).

Thanks!
Steve
ellipse_issues.R
trial_data.csv

Chris Tyson

unread,
Jan 20, 2025, 3:38:34 AMJan 20
to ctmm R user group
Hi Steve,

You are selecting 'Argos.semi.major' twice. If you change one of them to 'Argos.semi.minor' in select() then as.telemetry() will run.

Cheers,
Chris (Tyson)

steveh...@gmail.com

unread,
Jan 20, 2025, 3:18:20 PMJan 20
to ctmm R user group
Ah thanks for noticing that!

I changed it, but I still get an error: Error in `[[<-.data.frame`(`*tmp*`, DOP.LIST$horizontal$VAR, value = numeric(0)) :
  replacement has 0 rows, data has 220

steveh...@gmail.com

unread,
Jan 21, 2025, 1:17:48 PMJan 21
to ctmm R user group
So it looks like this was an issue with the github version of ctmm (1.2.1). 

The code works as intended for the CRAN version of the package (1.2.0).
Reply all
Reply to author
Forward
0 new messages