\Header{cumsum}{Cumulative Sums, Products, etc.}
\alias{cumprod}{cumsum}
\alias{cummin}{cumsum}
\alias{cummax}{cumsum}
\keyword{arith}{cumsum}
\begin{Usage}
\begin{verbatim}
cumsum(x)
cumprod(x)
cummax(x)
cummin(x)
\end{verbatim}
\end{Usage}
\begin{Value}
A vector with the same length of \texttt{x},
but whose elements are the cumulative sums,
products, minima or maxima of those in \texttt{x}.
An \texttt{NA} value in \texttt{x} will the corresponding
and following elements of the value to be \texttt{NA}.\end{Value}
\begin{Examples}
\begin{ExampleCode}
cumsum(1:10)
cumprod(1:10)
cummin(c(3:1,2:0,4:2))
cummax(c(3:1,2:0,4:2))
\end{ExampleCode}
\end{Examples}

