check_locations: Check locations

check_locationsR Documentation

Check locations

Description

Checks that locations can be reached when calculating least cost paths

Usage

check_locations(cost_surface, locations)

Arguments

cost_surface

TransitionLayer (gdistance package). Cost surface to be used when checking whether supplied locations are traversable from at least one adjcacent cell

locations

SpatialPoints* (sp package) locations to check

Details

Using the supplied cost surface, the function checks whether the cells of supplied locations are traversable from at least one adjacent cell. If the cells of the supplied location are not traversable from at least one adjacent cell then a calculated least cost path cannot traverse to that location.

Value

numeric vector of location indexes that are not traversable from at least one adjacent cell

Author(s)

Joseph Lewis


leastcostpath documentation built on June 3, 2022, 9:06 a.m.