psum: Vectorized sum, similiar to 'pmin' and 'pmax'

View source: R/utils.R

psumR Documentation

Vectorized sum, similiar to pmin and pmax

Description

Vectorized sum, similiar to pmin and pmax

Usage

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

Arguments

...

numeric vectors to sum

na.rm

a logical indicating whether missing values should be removed

Value

a vector with sum of ... arguments

Examples

psum(c(1, 2, 3), c(4, 5, 6))
psum(c(1, 2, 3), pi)
psum(c(1, NA, 3), c(4, 5, 6), na.rm = TRUE)


tanaylab/tgutil documentation built on March 16, 2024, 12:07 a.m.