tests/testthat/helper-aoristic.R

make_events <- function(from, to, tz = "UTC", x = 1, y = 1) {
  size <- max(length(from), length(to), length(x), length(y))
  data.frame(
    x = rep(x, length.out = size),
    y = rep(y, length.out = size),
    from = as.POSIXct(from, tz = tz),
    to = as.POSIXct(to, tz = tz)
  )
}

run_aoristic <- function(data) {
  suppressMessages(aoristic.df(data, "x", "y", "from", "to"))
}

hour_values <- function(result) {
  as.numeric(result[1, paste0("hour", seq_len(168))])
}

Try the aoristic package in your browser

Any scripts or data that you put into this service are public.

aoristic documentation built on Sept. 9, 2026, 9:08 a.m.