dataset1 <-
tibble::tibble(
Id = rep("A", 24),
Datetime = lubridate::as_datetime(0) + lubridate::hours(0:23),
MEDI = sample(0:1000, 24),
)
dataset1 %>%
dplyr::reframe(
"Disparity index" = disparity_index(MEDI)
)
Run the code above in your browser using DataLab