Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

pfun

Summarize a set of numeric vectors per row


Description

Summarize a set of numeric vectors per row

Usage

pfun(..., fun, na.rm = TRUE)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Arguments

...

Numeric vectors of the same length

fun

Function to apply

na.rm

a logical indicating whether missing values should be removed.

Details

Calculate summary statistics of the input vectors per row (or 'parallel')

Value

A vector of 'parallel' summaries of the argument vectors.

See Also

See also pmin and pmax

Examples

pfun(1:10, fun = mean)
psum(1:10, 10:1)

radiant.data

Data Menu for Radiant: Business Analytics using R and Shiny

v1.3.12
AGPL-3 | file LICENSE
Authors
Vincent Nijs [aut, cre]
Initial release
2020-11-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.