R: Calculate number of islands based on a CAR adjacency matrix.

CAR_calcNumIslands {nimble} | R Documentation

## Calculate number of islands based on a CAR adjacency matrix.

### Description

Calculate number of islands (distinct connected groups) based on a CAR adjacency matrix.

### Usage

    CAR_calcNumIslands(adj, num)

### Arguments

`adj` | vector of indices of the adjacent locations (neighbors) of each spatial location. This is a sparse representation of the full adjacency matrix.
`num` | vector giving the number of neighbors of each spatial location, with length equal to the total number of locations.

### Author(s)

Daniel Turek

### See Also

`CAR-Normal`

[Package nimble version 0.9.1 Index]