yearlyPeaks | R Documentation |
Finds the annual maxima (and, optionally, minima) of the specfied columns in a CRHM dataframe and their corresponding datetimes.
yearlyPeaks(CRHMdata, columns = 0, minvals = FALSE, logfile = "")
CRHMdata |
Required. A CRHMr dataframe. |
columns |
Optional. A vector containing the columns to be analyzed, not including the datetime column. If not specified, all data columns are used. |
minvals |
Optional. Logical. Specifies if yearly minimum values should also be found. Default value is |
logfile |
Optional. Name of the file to be used for logging the action. Normally not used. |
Returns a dataframe with maximum (and minimum if selected) values, and their corresponding datetimes, for each year for each selected variable.
Kevin Shook
aggDataframe
## Not run:
p <- yearlyPeaks(BrandonObs, columns=c(1,2), minvals=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.