Sub setting time series by 3 days and keep saving in list. Such that let suppose first subset is from day 1 to day 3 then the second subset would be from day 2 to day 4 such that every subset has a data of 3 days. Note this is 10 minute data time stamped. And saving every subset in the list depending on the total number of days dat available in the data.
i have tried reproducing it.
time_10 <- seq(ISOdatetime(2001,2,1,0,0,0), ISOdatetime(2001,3,31,0,0,0), by=(200))
a <- as.data.frame(matrix(, nrow = length(time_10), ncol = 4))
names(a)<- c("time_10","var1","var2","var3")
a$time_10 <- time_10
a$var1 <- runif(nrow(a), min=20, max=70)
a$var2 <- runif(nrow(a), min=10, max=50)
a$var3 <- runif(nrow(a), min= 3, max=10)
head(a)
Here is the image I am attaching which will give idea of sub setting the time series data and save it in a list.Here D1:day1,D2:day2,D3:day3 respectively. Using For loop or any other optimum method is appreciated .Note : So inside the For loop 3 days of sub setting of data will keep on happening and getting saved in a list with index as (Subset_n) where n is subset number.
