calcLaggedData | R Documentation |
Calculate Wx, the spatially lagged version of x, by a neighbouring matrix W.
calcLaggedData(x, nblistw, method = "mean")
x |
A dataframe with only numeric columns |
nblistw |
The listw object (spdep like) used to calculate WY |
method |
A string indicating if a classical lag must be used ("mean") or if a weighted median must be used ("median") |
A lagged version of x
#This is an internal function, no example provided
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.