TD_UNDIFF is the reverse of the TD_DIFF function. It takes in a previously-differenced series processed by TD_DIFF, and produces the original series that existed prior to the differencing.
Differencing removes trends and seasonality from time series data. It involves taking the difference between consecutive observations or between observations from the same season in previous years. Use TD_UNDIFF to restore the original series.