pmean: Parallel mean and median

View source: R/pmean.R

pmeanR Documentation

Parallel mean and median

Description

Parallel mean and median

Usage

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

pmedian(..., na.rm = TRUE)

Arguments

...

numeric vectors

na.rm

logical scalar, default TRUE

Value

The functions pmean() and pmedian() return a numeric vector.

Note

The functions pmean() and pmedian() mimic functions pmax.int and pmin.int. They are written in a very naive way. The pipeline cbind() |> rowMeans() is extremely slow.

References

https://tingtingzhan.quarto.pub/groupedhyperframe/nonS3/pmean.html

Examples

pmean(1:3, c(11, 12, 14), c(21, 22, 25))

groupedHyperframe documentation built on March 10, 2026, 5:08 p.m.