mt_has_unique_location_time_records gives error when track id is deployment_id column
Hi @bartk, this is also true for studies with animals with multiple deployments (e.g 571846928) where the downloaded tracks directly get the deployment_id assigned to track ids.
library(move2)
dt <- movebank_download_study(study_id= 6925808, sensor_type_id= "gps", remove_movebank_outliers=TRUE)
#> ℹ In total 1116 records were omitted as they were not deployed (the
#> `deployment_id` was `NA`).
mt_has_unique_location_time_records(dt)
#> [1] TRUE
dt <- mt_set_track_id(dt, "deployment_id")
mt_has_unique_location_time_records(dt)
#> Error in UseMethod("as.integer64"): no applicable method for 'as.integer64' applied to an object of class "c('POSIXct', 'POSIXt')"
Created on 2024-04-30 with reprex v2.1.0