compute_indexes | R Documentation |
Calculate multiple indexes at once
compute_indexes(.data, ...)
## S3 method for class 'idx_res'
augment(x, .id = ".id", ...)
.data |
an |
... |
Unused, included for generic consistency only |
x |
an |
.id |
a character string, the name of the first column |
an idx_res
object
library(dplyr)
library(lmomco)
library(generics)
res <- tenterfield |>
mutate(month = lubridate::month(ym)) |>
init(id = id, time = ym, group = month) |>
compute_indexes(
spi = idx_spi(),
spei = idx_spei(.lat = lat, .tavg = tavg),
edi = idx_edi()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.