| ck_compute | R Documentation |
A generic dispatcher that calls the appropriate ck_* function based on
a string index name. Useful for programmatic workflows where the index
is selected at runtime.
ck_compute(data, index, ...)
data |
A named list or data frame containing the required input
vectors. Column names should match function argument names (e.g.
|
index |
Character. Name of the index to compute (e.g.
|
... |
Additional arguments passed to the underlying function (e.g.
|
A data frame as returned by the underlying ck_* function.
d <- data.frame(
dates = as.Date("2024-01-01") + 0:9,
tmin = c(-2, 3, -1, 5, -3, 0, 2, -4, 1, -1)
)
ck_compute(d, "frost_days")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.