splinedecomp decomposes a time series into trend, season and irregular component by spline approach.
splinedecomp
Useful links