Learn R Programming

spdep (version 0.1-10)

card: Cardinalities for neighbours lists

Description

The function tallies the numbers of neighbours of regions in the neighbours list.

Usage

card(nb)

Arguments

nb
a neighbours list object of class nb

Value

  • An integer vector of the numbers of neighbours of regions in the neighbours list.

See Also

summary.nb

Examples

Run this code
data(columbus)
table(card(col.gal.nb))

Run the code above in your browser using DataLab