You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I am working around a satelite tracking dataset in which several of the last points en up over and (an animal moving closely to the coastline). I jave tried to apply prt_trim() as suggested by pathroutr, but I am etting this error.
class(track_pts)
[1] "sfc_MULTIPOINT" "sfc"
class(ns_polygon)
[1] "sf" "data.frame"
track_pts_fix<-prt_trim(track_pts,ns_polygon)
Error in [.default(trkpts, head_start:tail_end, ) :
Incorrect number of dimensions
Any workaround?
The text was updated successfully, but these errors were encountered:
There may be times where that trailing comma is appropriate, but i think posting a sample of the source datasets here could help us tease out a version of this function that handles those cases but also your cases in a sensible way.
I'm fairly certain that 'comma' is a typo ... but, need some time to double check with some sample data. So, if you can share a small dataset as part of a regex, that would be helpful as an additional check.
I suspect there are still some older/naive 'less than best' coding practices sprinkled throughout pathroutr with respect to some of the dplyr/purrr functions underneath. This could also be one of those situations.
Hi!
I am working around a satelite tracking dataset in which several of the last points en up over and (an animal moving closely to the coastline). I jave tried to apply prt_trim() as suggested by pathroutr, but I am etting this error.
Any workaround?
The text was updated successfully, but these errors were encountered: