exclude_from: Exclude months from analysis

Description Usage Arguments Details Value See Also Examples

View source: R/exclude_from.R

Description

Single months or ranges of months can be excluded from analysis. This is helpful for e.g. excluding winter months without cambial activity.

Usage

1
2
3
exclude_from(month, exclude = NULL)

exfr(month, exclude = NULL)

Arguments

month

range of numeric month ids

exclude

range or set of months to exclude

Details

These convenience function is provided for the exclusion of months. E.g., .range(exclude_from(-6:10, -11:3)) will yield the monthly values of all parameters for the months previous June (-6) to current October (10), but without the months previous November (-11) to current March (3) in between. While it is also possible to supply arbitrary vectors as month specification, and not only ranges as shown in most of the examples here, this way of excluding e.g. the dormant season is far more convenient.

Value

a reduced set of numeric month ids

See Also

link{.range}, link{.mean}, link{.sum}

Examples

1
exfr(-5:10, -10:3)

cszang/treeclim documentation built on Feb. 18, 2022, 4:54 a.m.