summary.nb {spdep}R Documentation

Print and summary function for neighbours and weights lists

Description

The function prints summary measures for links in a neighbours list. If a matrix of coordinates is given as well, summary descriptive measures for the link lengths are also printed. Print and summary functions are also available for "listw" weights list objects.

Usage

summary.nb(object, coords=NULL, lonlat = FALSE, scale = 1, ...)
print.nb(x, ...)
summary.listw(object, coords, lonlat, zero.policy = FALSE, scale = 1, ...)
print.listw(x, zero.policy = FALSE, ...)

Arguments

object an object of class nb
coords matrix of region point coordinates
lonlat TRUE if point coordinates are longitude-latitude decimal degrees, in which case distances are measured in kilometers
... additional arguments affecting the output produced
x an object of class nb
zero.policy If FALSE stop with error for any empty neighbour sets
scale passed through to stem() for control of plot length

Author(s)

Roger Bivand Roger.Bivand@nhh.no

See Also

plot.nb

Examples

data(columbus)
col.gal.nb
summary(col.gal.nb, coords)
col.listw <- nb2listw(col.gal.nb, style="W")
col.listw
summary(col.listw)

[Package spdep version 0.3-12 Index]