dataset1 <-
tibble::tibble(
Id = rep("B", 60 * 24),
Datetime = lubridate::as_datetime(0) + lubridate::minutes(0:(60*24-1)),
MEDI = c(rep(sample(seq(0,1,0.1), 60*8, replace = TRUE)),
rep(sample(1:1000, 16, replace = TRUE), each = 60))
)
dataset1 %>%
dplyr::reframe(barroso_lighting_metrics(MEDI, Datetime, as.df = TRUE))
Run the code above in your browser using DataLab