raster_pca: Raster PCA

View source: R/raster_pca.R

raster_pcaR Documentation

Raster PCA

Description

Perform a Principal Component Analysis on a SpatRaster

Usage

raster_pca(x, aggr = NULL, focal = NULL)

Arguments

x

SpatRaster.

aggr

Integer. Aggregation factor based on function aggregate of terra package.

focal

Integer. smooth filter based on function focal of terra package.

Value

a list with:

  • A SpatRaster containing the results of the PCA

  • A data.frame containing the main results of the PCA (standard deviation, proportion of variance and cumulative variance


lemuscanovas/synoptReg documentation built on March 20, 2024, 8:18 a.m.