I have time series data outputted from a lapply
and would like to cbind
them together starting from their respective start date. Here I set an example of 5 random generated time series starting from random generated dates.
set.seed(123)
d <- lapply(1:5,function(x) ts(rnorm(runif(1,5,20),0,10),start = floor(c(runif(1,2019,2020),runif(1,1,12))),frequency = 12))
I tried cbind, cbindna/cbind.na (package 'qpcR'), data.frame, cbind2, etc... I can not find the appropriate tool for this. Using a for loop filling the empty spaces seems silly. My desired output image: