This function is to sum, what pmin and pmax is to min and max.

psum(..., na.rm = FALSE)

Arguments

...

numeric vectors

na.rm

a logical indicating whether missing values should be removed.

Examples

psum(1:10, 1:10, 1:10)
#> [1] 3 6 9 12 15 18 21 24 27 30