is_connected {scanstatistics} | R Documentation |
Returns TRUE if the neighboring locations are connected to the given location, FALSE if not.
is_connected(neighbor_locations, location, adjacency_matrix)
neighbor_locations |
A |
location |
A location, preferably given as an integer. |
adjacency_matrix |
A boolean matrix, with element |
Boolean: is the neighbors connected to the given location?