prod returns the product of all the values present in its arguments.
prod(…, na.rm = FALSE)
| Parameter | Description |
|---|---|
… |
numeric or complex or logical vectors. |
na.rm |
logical. Should missing values be removed? |
# NOT RUN {
print(prod(1:7)) == print(gamma(8))
# }