Rev 24300 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{prod}\title{Product of Vector Elements}\usage{prod(\dots, na.rm = FALSE)}\alias{prod}\description{\code{prod} returns the product of all the valuespresent in its arguments.}\arguments{\item{\dots}{numeric vectors.}\item{na.rm}{logical. Should missing values be removed?}}\details{If \code{na.rm} is \code{FALSE} an \code{NA}value in any of the arguments will causea value of \code{NA} to be returned, otherwise\code{NA} values are ignored.}\references{Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988)\emph{The New S Language}.Wadsworth \& Brooks/Cole.}\seealso{\code{\link{sum}},\code{\link{cumprod}},\code{\link{cumsum}}.}\examples{print(prod(1:7)) == print(gamma(8))}\keyword{arith}