pmean: Vectorized mean, similiar to 'pmin' and 'pmax'

View source: R/utils.R

pmeanR Documentation

Vectorized mean, similiar to pmin and pmax

Description

Vectorized mean, similiar to pmin and pmax

Usage

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

Arguments

...

numeric vectors to average

na.rm

a logical indicating whether missing values should be removed

Value

a vector with mean 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.