Learn R Programming

spdep (version 0.1-10)

write.nb.gal: Write a neighbours list as a GAL lattice file

Usage

write.nb.gal(nb, file)

Arguments

nb
an object of class nb with a list of integer vectors containing neighbour region number ids.
file
name of file with GAL lattice data

See Also

read.gal

Examples

Run this code
data(columbus)
GALfile <- tempfile("GAL")
write.nb.gal(col.gal.nb, GALfile)
col.queen <- read.gal(GALfile)
unlink(GALfile)
summary(diffnb(col.queen, col.gal.nb))

Run the code above in your browser using DataLab