ctmm-initiative / ctmm

Continuous-Time Movement Modeling. Functions for identifying, fitting, and applying continuous-space, continuous-time stochastic movement models to animal tracking data.
http://biology.umd.edu/movement.html
43 stars 10 forks source link

Renaming inconsistent location classes in `tbind` #50

Closed cwilhite4151 closed 10 months ago

cwilhite4151 commented 10 months ago

The ubind function called in tbind renames inconsistent location classes in lists of telemetry objects but only returns the combined UERE object to the tbind function and subsequently the renamed location classes are not returned from tbind. ubind should return x with renamed classes to tbind.

Fix in tbind:

x <- ubind(x) UERE <- uere(x)

Fix in ubind:

for (i in 1:length(x)) { x[[i]]@UERE <- UERE } return(x)

chfleming commented 10 months ago

Thanks for the bug report and code suggestion. I've pushed a fix for this issue and added you as a contributor to the DESCRIPTION file.

cwilhite4151 commented 10 months ago

Great, all fixed, thank you!