% Generated by roxygen2: do not edit by hand % Please edit documentation in R/twa.R \name{max_twa} \alias{max_twa} \title{The maximum time weighted average concentration for a moving window} \usage{ max_twa(x, window = 21) } \arguments{ \item{x}{An object of type \code{\link{one_box}}} \item{window}{The size of the moving window} } \description{ If you generate your time series using \code{\link{sawtooth}}, you need to make sure that the length of the time series allows for finding the maximum. It is therefore recommended to check this using \code{\link{plot.one_box}} using the window size for the argument \code{max_twa}. } \seealso{ \code{\link{twa}} }