Closed francisvolh closed 2 years ago
Hi Francis,
I think I have made a fix to the code that will allow getSessions() to work when there is only one observation per group. Could you install the dev version of seabiRds and try it with your data?
devtools::install_github("allisonglider/seabiRds@dev")
If this fixes your issue, then I will merge it into the main branch.
Allison
Hi Allison! I am having some issues with labeling foraging bouts for my gps data using getSessions().
Basically I run getSessions() on my full gps data, to label trip_ids for each deployment, and also label foraging or not (1 and 0, with a basic speed threshold).
It happens that I have some trip_ids that are only 1 gps point basically (just away from colony over my 5km threshold, slows down, and back, ), which is a foraging point (=1).
When I try to getSession() I get an error, even after filtering for NAs for my foraging parameter, which I use for getSeesions(). I paste the error output below.
I would assume that getSessions() could just label that trip as a single session for foraging and keep going but it seems is and issue.