time_df = data.frame(
time = c("2023-12-01 01:00:00",
"2023-12-01 02:00:00",
"2023-12-01 03:00:00",
"2023-12-01 04:00:00"),
value = c(123,
144,
150,
100)
)
as.timeDF(time_df)
Run the code above in your browser using DataLab