bioclim_rolling_cpp: Compute bioclimatic variables using a rolling window of...

View source: R/RcppExports.R

bioclim_rolling_cppR Documentation

Compute bioclimatic variables using a rolling window of arbitrary length

Description

Compute bioclimatic variables using a rolling window of arbitrary length

Usage

bioclim_rolling_cpp(tas, tasmax, tasmin, pr, window = 3L, na_rm = FALSE)

Arguments

tas

Numeric matrix (pixels x 12): monthly mean temperature.

tasmax

Numeric matrix (pixels x 12): monthly maximum temperature.

tasmin

Numeric matrix (pixels x 12): monthly minimum temperature.

pr

Numeric matrix (pixels x 12): monthly precipitation.

window

Integer: length (months) of the rolling window (2-11).

na_rm

Logical: if TRUE, skip NA months.

Value

Numeric matrix (pixels x 19) with columns bio01..bio19. The base variables (bio01-bio07, bio12-bio15) are computed over the full 12 months; the rolling-window variables (bio08-bio11, bio16-bio19) are computed over the best window-month period.


xbioclim documentation built on Oct. 5, 2026, 5:08 p.m.