knnst_temporal_cor: Compute temporal correlation after KNN space-time...

View source: R/knnst_temporal_cor.R

knnst_temporal_corR Documentation

Compute temporal correlation after KNN space-time disaggregation

Description

knnst_temporal_cor() computes the temporal correlation between all months at the specified site

Usage

knnst_temporal_cor(disagg, site, bin_size = NULL)

Arguments

disagg

A knnst object

site

Site to compute the correlations at. Scalar character.

bin_size

Number of years for each bin when there is only one simulation.

Details

If there are more than one simulations, the correlation is computed for each simulation across all years. If there is only one simulation, then the user must specify the bin_size that is used to compute the correlation across moving windows of this specified size.

Value

A knnst_tmpcor object.

See Also

plot.knnst_tmpcor(), knnst_spatial_cor()

Examples

# use a 50-year bin size to compute the stats at Cameo
tmp_cor <- knnst_temporal_cor(ex_disagg, "Cameo", 50)

# use a 100-year bin size for computing the stats at Hoover
tmp_cor <- knnst_temporal_cor(ex_disagg, "Hoover", 100)


rabutler-usbr/knnstdisagg documentation built on Sept. 14, 2023, 2:47 p.m.