View source: R/monthlyPrecipTotals.R
monthlyPrecipTotals | R Documentation |
Calculates mean total precipitation for each calendar month in the observation
data frame. Optionally plots the values. Can work with p
and/or ppt
values.
monthlyPrecipTotals(obs, precipCols = 0, plot = TRUE, logfile = "")
obs |
Required. A CRHMr data frame containing |
precipCols |
Optional. A vector containing the columns to be analyzed, not including the
|
plot |
Optional. If |
logfile |
Optional. Name of the file to be used for logging the action. Normally not used. |
If successful, returns either a data frame or a ggplot2 object of the monthly
mean precipitations. If unsuccessful, returns FALSE
.
Kevin Shook
aggDataframe
monthlyQQplot
## Not run:
marmot_monthly_plot <- monthlyPrecipTotals(marmot)
marmot_monthly_means <- monthlyPrecipTotals(marmot, plot = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.