This function is similar to pmax or pmin, except that it returns the element-wise sum of values. If the input is a matrix or data.frame, the output is the same as colSums.
Usage
psum(..., na.rm = FALSE)
Value
A numeric vector.
Arguments
...
A set of vectors of the same length, a matrix, or a data.table.
na.rm
If FALSE (default), return NA if any element in a set is NA.