Learn R Programming

spdep (version 0.6-9)

auckland: Marshall's infant mortality in Auckland dataset

Description

(Use example(auckland) to load the data from shapefile and generate neighbour list on the fly).

The auckland data frame has 167 rows (census area units --- CAU) and 4 columns. The dataset also includes the "nb" object auckland.nb of neighbour relations based on contiguity, and the "polylist" object auckpolys of polygon boundaries for the CAU. The auckland data frame includes the following columns:

Usage

data(auckland)

Arguments

Format

This data frame contains the following columns:

Source

Marshall R M (1991) Mapping disease and mortality rates using Empirical Bayes Estimators, Applied Statistics, 40, 283--294; Bailey T, Gatrell A (1995) Interactive Spatial Data Analysis, Harlow: Longman --- INFOMAP data set used with permission.

Details

The contiguous neighbours object does not completely replicate results in the sources, and was reconstructed from auckpolys; examination of figures in the sources suggests that there are differences in detail, although probably not in substance.

Examples

Run this code
require(maptools)
auckland <- readShapePoly(system.file("etc/shapes/auckland.shp",
 package="spdep")[1])
auckland.nb <- poly2nb(auckland)

Run the code above in your browser using DataLab