Closed kpiecora closed 2 years ago
How did you create dat
? The function random_steps()
fits a distribution to the step lengths. If you did not use this, then the step-length distribution is not saved. Maybe you could give a few more details on your work flow prior to fit_issf()
.
I created it with random_steps() first, but then saved as a csv to extract habitat variables in ArcGIS (my computer couldn't handle extracting from rasters within R). Which means that when I brought the file back into R it was only a data frame. Would the tibble originally created with random_steps() have contained the distributions which were then lost when I exported it as a csv?
Yes, when exporting the to .csv
file all attributes are lost. You can extract the step-length (and also turn-angle) distribution prior to the export using the same function and save them to a variable for later.
Makes sense. Thanks for helping me get to the bottom of it!
Hi,
My fit_issf() output has NULLs instead of returning step length and turn angle distributions. I modeled my code from "Appendix B: SSF Examples" by Fieberg et al and am able to run the fisher example all the way through without any issues. When I attempt "sl_distr()" it returns the following error: "Error in UseMethod("sl_distr") : no applicable method for 'sl_distr' applied to an object of class "data.frame", yet no error when doing the same with the example fisher data frame. Below is a small subset of data that reproduces the NULLs I'm seeing with my full df.
Any suggestions?
Created on 2022-11-02 with reprex v2.0.2