Decompose a time series into seasonal, trend, and remainder components using an implementation of Seasonal Decomposition of Time Series by Loess (STL) that provides several enhancements over the STL method in the stats package. These enhancements include handling missing values, providing higher order (quadratic) loess smoothing with automated parameter choices, frequency component smoothing beyond the seasonal and trend components, and some basic plot methods for diagnostics.

This package contains enhancements to the Seasonal Trend Decomposition using Loess (STL) implementation that comes with base R, stl().
Here are some of the added features over stl():
For (very) experimental inference, prediction, and variance reduction at endpoints, see the operator package.
CRAN:
install.packages("stlplus")
Github:
devtools::install_github("hafen/stlplus")
This software is released under the BSD license. Please read the license document.