Description
Original question from 'Bernard Okoński UP ':
I think it would be great that the values for the argument season should be maximum flexible that everyone can chose any month sequence or a period that suits ones research end geographic region e.g. hydrologic year in Atlantic Europe starts November 1st of one year and October 30th of the next, in the US October 1st of one year and September 30th of the next, Vegetation period (mean temp. above 5C) is roughly from the beginning of April to the end of October.
The problem will be with months starting with the same letter with JFMAMJJASOND
but the same issue was solved in treeclim
package by Christian Zang. There is dcc
function with that functionality for calculating correlation/multiple correlation with arguments:
selection=.range(-4:-9)+.range(4:9)
indicating the season April to September previous year and April to September the next year as an explanatory data for calculation of linear correlation