When using any variation of the steps() or step_lengths() functions with lonlat=TRUE, I am getting the following error:
Error in UseMethod("units") :
no applicable method for 'units' applied to an object of class "logical"
It seems to be an issue with the 'units' class of the st_distance output within the steplengths() function. I've tried to edit the function in my global environment to drop the class 'units,' but my final output isn't retaining the sl column. I'm wanting to see my step length distribution by geographic distances.
When using any variation of the steps() or step_lengths() functions with lonlat=TRUE, I am getting the following error:
Error in UseMethod("units") : no applicable method for 'units' applied to an object of class "logical"
It seems to be an issue with the 'units' class of the st_distance output within the steplengths() function. I've tried to edit the function in my global environment to drop the class 'units,' but my final output isn't retaining the sl column. I'm wanting to see my step length distribution by geographic distances.