rspcor: Spatially auto-correlated distribution

Description Usage Arguments Value Examples

View source: R/rspcor.R

Description

Spatial random generator of spatially auto-correlated distribution based on a given random generator. The generator uses a simple spatial resampling of a smaller grid.

Usage

1
2
3
4
5
rspcor(
  M = matrix(rdeltanci(NCI = rnorm(50 * 50, mean = 122.73, sd = 25.806)), ncol = 50,
    nrow = 50),
  dcor = 3
)

Arguments

M

matrix. Environmental matrix in which to create spatial auto-correlation.

dcor

int. Spatial auto-correlation size in number of cells.

Value

A data.frame of X, Y, and values.

Examples

1

sylvainschmitt/ecoevosimulator documentation built on Nov. 19, 2020, 8:04 a.m.