View source: R/imd_processing.R
| aggregate_imd_by_frequency | R Documentation |
Aggregate IMD data by temporal frequency
aggregate_imd_by_frequency(data, frequency = "daily")
data |
data.frame with IMD data |
frequency |
Character string: "daily", "monthly", "yearly" |
A data.frame with columns date (first day of each month or year), latitude, longitude and the value column, summed for rainfall and averaged for temperature. Returned unchanged when frequency = "daily".
imd <- data.frame(
date = rep(as.Date("2023-01-01") + 0:59, each = 2),
latitude = 20.5, longitude = c(73.5, 79.5), rainfall = 1
)
aggregate_imd_by_frequency(imd, "monthly")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.