Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

nbmult

convert a spatial nb object to a matching STF object


Description

convert a spatial nb object to a matching STF object

Usage

nbMult(nb, st, addT = TRUE, addST = FALSE)

Arguments

nb

object of class nb (see package spdep), which is valid for the spatial slot of object st: length(nb) should equal length(st@sp)

st

object of class STF

addT

logical; should temporal neighbours be added?

addST

logical; should spatio-temporal neighbours be added?

Details

if both addT and addST are false, only spatial neighbours are added for each time replicate.

details are found in

Giovana M. de Espindola, Edzer Pebesma, Gilberto C\^amara, 2011. Spatio-temporal regression models for deforestation in the Brazilian Amazon. STDM 2011, The International Symposium on Spatial-Temporal Analysis and Data Mining, University College London - 18th-20th July 2011.

Value

object of class nb

Author(s)

Edzer Pebesma


spacetime

Classes and Methods for Spatio-Temporal Data

v1.2-4
GPL (>= 2)
Authors
Edzer Pebesma [aut, cre] (<https://orcid.org/0000-0001-8049-7069>), Benedikt Graeler [ctb], Tom Gottfried [ctb], Robert J. Hijmans [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.