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

stats-conveniences

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

Management of Survey Data and Presentation of Analysis Results

v0.99.27.3
GPL-2
Authors
Martin Elff (with contributions from Christopher N. Lawrence, Dave Atkins, Jason W. Morgan, Achim Zeileis)
Initial release
2020-11-18

We don't support your browser anymore

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