Learn R Programming

geocmeans (version 0.3.4)

calcLaggedData: Lagged Data

Description

Calculate Wx, the spatially lagged version of x, by a neighbouring matrix W.

Usage

calcLaggedData(x, nblistw, method = "mean")

Value

A lagged version of x

Arguments

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")

Examples

Run this code
#This is an internal function, no example provided

Run the code above in your browser using DataLab