lda_raster: Apply LDA to raster stack

Description Usage Arguments Value

View source: R/lda_raster.R

Description

Apply LDA to raster stack

Usage

1
lda_raster(x, y, nsamples = 200, ncores, filename = NULL, ...)

Arguments

x

Raster stack of predictors

y

Raster layer with dependent categorical variable

nsamples

Number of samples to use for calculation of LDA

ncores

Number of cores to use

filename

Optional. filename for writing raster to disk.

...

arguments passed on to PCA function

Value

A list with 1) the raster stack with the LDA components and 2) the LDA object


juoe/spatialtoolbox documentation built on May 7, 2019, 9:37 a.m.