#prod
prod() function returns the multiplication results of all the values present in its arguments.
prod(..., na.rm=FALSE)
...: numeric or complex or logical vectors
na.rm: whether missing values be removed or not
...
@R_Experts
prod() function returns the multiplication results of all the values present in its arguments.
prod(..., na.rm=FALSE)
...: numeric or complex or logical vectors
na.rm: whether missing values be removed or not
...
> prod(4:6) #4 × 5 × 6
[1] 120
> x <- c(3.2,5,4.3)
> prod(x) #3.2 × 5 × 4.3
[1] 68.8
@R_Experts