% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/seasonal.R
\name{stratifySeasonData}
\alias{stratifySeasonData}
\title{Stratify a time series by season}
\usage{
stratifySeasonData(TS, season)
}
\arguments{
\item{TS}{data frame or data table with columns \code{date} and \code{value}}

\item{season}{character; name of a date-component function
(e.g. \code{"month"}, \code{"week"})}
}
\value{
a list of two elements: \code{[[1]]} named list of full seasonal
subsets; \code{[[2]]} named list of nonzero seasonal subsets
}
\description{
Splits a two-column (date, value) time series into a list of seasonal
subsets, plus a parallel list of nonzero-only subsets.
}
\seealso{
\code{\link{analyzeTS}}
}
\keyword{internal}
