so far the result I get is as below, which is a 'tibble' format.
However, as this is a group of time series, I wish to transform this result x
into a 'tsibble' format afterwords.
Anyone know what further step I need to do?
I tried using
x <- function_name(n.ts = 3, freq = 12, nComp = 2, n = 120,output_format = "list")
as_tsibble(x)
Another trying & error
The content should display something similar to this
The 'x' is a
list
with multiple components. We can loop over thelist
withmap
, extract the 'x' component and convert it totsibble
Here, the index part is created by the column name ('Month') and as there was no information regarding the 'year', it started with '0001'
data