Description Usage Arguments Value
View source: R/move_continuous.R
Helper function to determine if a simulated movement is valid. To do: tests (same length as outbounds and boolean no NAs)
1 | valid(leave_bounds, allow_invalid, outbounds, invalid)
|
leave_bounds |
boolean, are movements to outside of the boundaries of the are being simulated are valid |
allow_invalid |
boolean, are movements to empty patches (i.e. with no dogs or bodies of water, etc.) valid |
outbounds |
whether cell id is out-of-bounds of the area being simulated |
invalid |
whether cell id is considered an ivalid area (i.e. not populated or other barrier to movement) |
a boolean vector of length outbounds
/invalid
corresponding to whether
a movement is accepted as valid based on the arguments leave_bounds
/ allow_invalid
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.