## NOTE: Example is wrapped in `\dontrun{}` as function requires a large
## amount of data which is not included in the package.
if (FALSE) {
loc <- data.frame(id = "001", lon = -78.90, lat = 35.97)
terracliamte_covar <- calculate_terraclimate(
from = terraclimate, # derived from process_terraclimate() example
locs = loc,
locs_id = "id",
radius = 0,
fun = "mean",
geom = FALSE
)
calculate_lagged(
from = terracliamte_covar,
locs_id = "id",
date = c("2023-01-02", "2023-01-10"),
lag = 1,
time_id = "time"
)
}
Run the code above in your browser using DataLab