Description Usage Arguments Value Author(s) References Examples
Output spatial neighbours for INLA
1 |
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
1 2 3 |
Loading required package: sp
Loading required package: Matrix
colmbs> require(maptools)
Loading required package: maptools
Checking rgeos availability: TRUE
colmbs> columbus <- readShapePoly(system.file("etc/shapes/columbus.shp",
colmbs+ package="spdep")[1])
colmbs> col.gal.nb <- read.gal(system.file("etc/weights/columbus.gal",
colmbs+ package="spdep")[1])
Warning message:
use rgdal::readOGR or sf::st_read
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.