View source: R/get_seasonality.R
get_seasonality | R Documentation |
This function accepts a data frame containing daily streamflow data, then computes get_seasonality variables by first standardizing flows, the fitting relation A*cos(2*pi*t) + B*sin(2*pi*t)1) Get decimal yearand returns the amplitude and phase
get_seasonality(x, yearType = "water", wyMonth = 10L)
x |
A dataframe containing a vector of date values in the first column and vector of numeric flow values in the second column. |
yearType |
A charcter of either "water" or "calendar" indicating whether to use water years or calendar years, respectively. |
wyMonth |
A numeric. The month of the year in which the water year starts (1=January, 12=December). The water year begins on the first day of wyMonth. |
get_seasonality vector of seasonal factors (amplitude and phase)
x <- sampleData[c("date","discharge")]
get_seasonality(x=x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.