| peak_month | R Documentation |
Month of the largest long-term mean
peak_month(data, value, by = c("latitude", "longitude"))
data |
Data frame with |
value |
Name of the column to use, for example monthly precipitation |
by |
Group columns. The default is each grid point. |
Data frame with the by columns, peak_month (1-12),
peak_value and annual_total (sum of the 12 monthly means). When two
months have the same mean, the first month is the peak.
df <- data.frame(latitude = 10, longitude = 70, month = 1:12, tp = c(1:6, 12:7))
peak_month(df, "tp")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.