# Data
dat <- data.frame(time = c(1, 1, 2, 2),
longitude = c(43.9, 44.5, 44.1, 44.0),
latitude = c(33.6, 32.7, 33.6, 33.5),
type = rep(c("treat", "out"), 2))
# Hyperframe
get_hfr(data = dat,
col = "type",
window = iraq_window,
time_col = "time",
time_range = c(1, 2),
coordinates = c("longitude", "latitude"),
combine = FALSE)
Run the code above in your browser using DataLab