View source: R/knnst_temporal_cor.R
knnst_temporal_cor | R Documentation |
knnst_temporal_cor()
computes the temporal correlation between all months
at the specified site
knnst_temporal_cor(disagg, site, bin_size = NULL)
disagg |
A |
site |
Site to compute the correlations at. Scalar character. |
bin_size |
Number of years for each bin when there is only one simulation. |
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.
A knnst_tmpcor
object.
plot.knnst_tmpcor()
, knnst_spatial_cor()
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.