Hi!
I posted this as a follow-up to a previous question, but I think it might have gotten lost in the shuffle. So here it is again :-)
I've been working through the oSCR bookdown. I've been able to generate an optimal sampling design for my study area, but have encountered an issue running the simulations (from section 5 - evaluation by simulation).
When I run the simulator function with what I believe is the correct sigma (in m, given the state space object is in m), I get this error message:
Error in if (.) . > 1 else { : argument is not interpretable as logical
In addition: Warning message:
In rbinom(K, 1, pmat[i, j]) : NAs produced
The simulation does run when I use sigma in km, but it takes a very, very long time (and I have yet to run it through completely).
Not totally sure what the issue is here... Dan has taken a look at my script but we haven't been able to solve things yet.
Happy to share my code!
Thanks so much for your help -
Jamie