stats-conveniences: Convenience wrappers for common statistical functions

MeanR Documentation

Convenience wrappers for common statistical functions

Description

Mean(), Median(), etc. are mere wrappers of the functions mean(), median(), etc. with the na.rm= optional argument set TRUE by default.

Usage

Mean(x, na.rm=TRUE, ...)
Median(x, na.rm=TRUE, ...)
Min(x, na.rm=TRUE, ...)
Max(x, na.rm=TRUE, ...)
Weighted.Mean(x, w, ..., na.rm = TRUE)
Var(x, na.rm=TRUE, ...)
StdDev(x, na.rm=TRUE, ...)

Cov(x, y = NULL, use = "pairwise.complete.obs", ...)
Cor(x, y = NULL, use = "pairwise.complete.obs", ...)
Range(..., na.rm = TRUE, finite = FALSE)

Arguments

x

a (numeric) vector.

y

a (numeric) vector or NULL.

w

a (numeric) vector of weights.

na.rm

a logical value, see mean.

use

a character string, see cor.

...

other arguments, passed to the wrapped functions.

finite

a logical value, see range.


memisc documentation built on March 31, 2023, 7:29 p.m.