RemCorrLayers: Remove correlated layers

Description Usage Arguments Value Examples

View source: R/RemCorrLayers.R

Description

For a pair of correlated raster layers, this function will remove one. The output stack will have layers with a correlation between them below the user specified threshold.

Usage

1
RemCorrLayers(in.stack, t.cor)

Arguments

in.stack

a RasterStack object

t.cor

the maximum allowed correlation between layers in the RasterStack. Must be a value between 0 and 1.

Value

A RasterStack of layers with correlation below the user specified correlation threshold.

Examples

1
env.vars.uncorr <- RemCorrLayers(env.vars, 0.8)

jivelasquezt/WhereNext-Pkg documentation built on Oct. 11, 2021, 9:46 p.m.