.BG
.VE $Header: /usr3/s/current/s/.help/RCS/prod,v 1.2 83/12/30 19:32:49 rab Exp $
.FN prod
.FN sum
.TL
prod sum: Products and Sums
.CS
prod(x, naout)
sum(x, naout)
.PP
.AG x
numeric structure.
Missing values (NAs) are allowed.
.AG naout
logical, if TRUE, all NAs are removed from `x' prior to carrying out the operation.
.RT
the sum (product) of all elements of `x'.
If NAs are present and not removed, the result is NA.
.KW basic*
.KW summary
.KW math
.WR
