If the user has specified a matrix stating which areas are allowed to be connected (and thus have a species with a range in both areas), this function checks if the input list of areas (as a 0-based vector of areas) in a single state/geographic range is consistent with the areas-allowed matrix.
The input state is a 0-based vector of area indices.
A matrix (number of areas x number of areas) with 1s indicating allowed connections between areas, and 0s indicating disallowed connections.
This function may be used by e.g.
Nicholas J. Matzke firstname.lastname@example.org
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.