I referred to the post in stackoverflow below and found that creating a time-series by 30 miniute interval can be acheived by the code below.
Post: Create a time series by 30 minute intervals
ts <- seq(as.POSIXct("2023-01-01", tz = "UTC"),
as.POSIXct("2023-01-02", tz = "UTC"),
by = "30 min")
head(ts)
My question is lets say I want to create a time interval of 30 minutes from 6 to 9am and 45 minutes for 9 to 3am how can I achieve this?
One way could be to create two lists separately and join. However, this does not ensure continuity when interval times are irregular are not multiples of 5 like 16 minutes, 21 minutes, ..so on