Checks that locations can be reached when calculating least cost paths
check_locations(cost_surface, locations)
numeric vector
of location indexes that are not traversable from at least one adjacent cell
TransitionLayer
(gdistance package). Cost surface to be used when checking whether supplied locations are traversable from at least one adjcacent cell
SpatialPoints*
(sp package) locations to check
Joseph Lewis
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.