nb2INLA {spdep} | R Documentation |
Output spatial neighbours for INLA
nb2INLA(file, nb)
file |
file where adjacency matrix will be stored |
nb |
an object of class |
Nothing is returned but a file will be created with the representation of the adjacency matrix as required by INLA for its spatial models.
Virgilio Gomez-Rubio
http://www.r-inla.org
example(columbus) td <- tempdir() x <- nb2INLA(paste(td, "columbus-INLA.adj", sep="/"), col.gal.nb)