Calculate a Baseline-Relative Activity-Day Index
Usage
acti_day_index(
time,
day_start = hms::hms(0),
origin = NULL,
start = 1L,
timezone = NULL
)Note
A stable recording-relative day number supports faceting and alignment across participants even when their calendar start dates differ.
Examples
time = as.POSIXct(c("2020-01-01 03:00:00", "2020-01-01 05:00:00"), tz = "UTC")
acti_day_index(time, day_start = "04:00")
#> [1] 1 2