spatial_ac: Spatial autcorrelation

Description Usage Arguments Value

View source: R/autocorrelation.R

Description

This function is a wrapper around lisa.nc to calculate spatial autocorrelation of a spectral map.

Usage

1
spatial_ac(x, neigh = 2, colname = "spatial_ac", ...)

Arguments

x

a hyperSpec object.

neigh

neighborhood size as defined in lisa.nc.

colname

name of the data column to be added to x@data, containing the mean correlation within the neighborhood.

...

additional arguments handed further to lisa.nc.

Value

a hyperSpec object such as given for x with an additional column in x@data.


konradmayer/hyperSpec.utils documentation built on May 2, 2021, 4:17 a.m.