| quarterly_variables | R Documentation |
Computes six quarterly/seasonal variables for an arbitrary set of months.
quarterly_variables(tas, tasmax, tasmin, pr, months, na.rm = FALSE, ...)
## Default S3 method:
quarterly_variables(tas, tasmax, tasmin, pr, months, na.rm = FALSE, ...)
tas |
Numeric vector (length 12), matrix (pixels x 12), SpatRaster with 12 layers, or BioclimData. |
tasmax |
Same form as |
tasmin |
Same form as |
pr |
Same form as |
months |
Integer vector of 1-based month indices to include (e.g.
|
na.rm |
Logical. If |
... |
Not currently used. |
The output variables are:
tmean_s — mean tas over the selected months.
tmax_max — maximum monthly tasmax among the selected months.
tmin_min — minimum monthly tasmin among the selected months.
trange — tmax_max - tmin_min.
pr_tot — total pr over the selected months.
pr_cv — coefficient of variation of monthly pr
(100 * sd_pop / mean), matching the BIO15 scaling.
Use quarterly_fixed() for the four standard fixed quarters and
quarterly_rolling() for rolling 3-month windows.
Vector input: a named numeric vector of length 6.
Matrix / BioclimData input: a numeric matrix (pixels x 6) with
columns tmean_s, tmax_max, tmin_min, trange, pr_tot, pr_cv.
SpatRaster input: a 6-layer SpatRaster with the same geometry and the same names.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.