I have a time series data on which I am performing outlier treatment.
For decomposition I am using the STL function. I want to generate an output in the given format:
ID Actual Trend Seasonality Random Smooth
Please help me to generate the output in this format.