Output spatial neighbours for INLA
file where adjacency matrix will be stored
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.
col.gal.nb <- read.gal(system.file("weights/columbus.gal", package="spData")) td <- tempdir() x <- nb2INLA(paste(td, "columbus-INLA.adj", sep="/"), col.gal.nb) readLines(paste(td, "columbus-INLA.adj", sep="/"), n=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.