calcLaggedData: Lagged Data

View source: R/assembling.R

calcLaggedDataR Documentation

Lagged Data

Description

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

Usage

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

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

Value

A lagged version of x

Examples

#This is an internal function, no example provided

geocmeans documentation built on Sept. 12, 2023, 9:06 a.m.