Mean

0th

Percentile

Convenience wrappers for common statistical functions

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.

Aliases
  • Mean
  • Median
  • Min
  • Max
  • Weighted.Mean
  • Var
  • StdDev
  • Cov
  • Cor
  • Range
Documentation reproduced from package memisc, version 0.99.27.3, License: GPL-2

Community examples

Looks like there are no examples yet.