Closed kjklauder closed 4 years ago
UPDATE: Was able to resolve this issue by mirroring the code in the latest version of the vignette (2019-09-19), which contains new syntax for tidyr::nest() that I was unaware of. Apologies for not observing it more closely.
amttestB<-amttestA%>% nest(data=-"id")
The call to map the burst function now works fine.
I have code drawn from the amt vignette to regularize some GPS data stored as an sf object. It was working a few months ago but when I came back to it, an update to dplyr seems to be causing problems (or so I assume). Original code:
The first issue I encountered was this clash between sf and tidyr when using nest(); consequently I had to make my sf object a dataframe so that nest() would work:
The final call, to create the bursts, produces the error:
Running with debug pulls up:
This appears to be very similar to this issue. I've tried various combinations of grouping and ungrouping the objects before the call to burst, and/or making my data object a vanilla dataframe in a couple different ways, and still get the same error. I'm sorry this isn't a reprex; the data are sensitive. If you're having trouble reproducing it I can email some. Thanks for your work on this package!
Traceback:
Session info: