Description Usage Arguments Value Examples
View source: R/RProjects/HITHATStats/R/th1.2.R View source: R/th1.2.R
This function accepts a data frame that contains a column named "discharge" and calculates TH1; Julian date of annual maximum. Determine the Julian date that the maximum flow occurs for each year. Transform the dates to relative values on a circular scale (radians or degrees). Compute the x and y components for each year and average them across all years. Compute the mean angle as the arc tangent of y-mean divided by x-mean. Transform the resultant angle back to Julian date (Julian day-spatial). and TH2; Variability in Julian date of annual maxima. Compute the coefficient of variation for the mean x and y components and convert to a date (Julian days-spatial).
1 |
qfiletempf |
data frame containing a "discharge" column containing daily flow values |
th1.2 list containing TH1 and TH2 for the given data frame
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.