valid: Accept a simulated movement

Description Usage Arguments Value

View source: R/move_continuous.R

Description

Helper function to determine if a simulated movement is valid. To do: tests (same length as outbounds and boolean no NAs)

Usage

1
valid(leave_bounds, allow_invalid, outbounds, invalid)

Arguments

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)

Value

a boolean vector of length outbounds/invalid corresponding to whether a movement is accepted as valid based on the arguments leave_bounds / allow_invalid


mrajeev08/simrabid documentation built on May 7, 2021, 11:47 a.m.