| 1 |
\name{Mean} |
| 2 |
\alias{Mean} |
| 3 |
\alias{Median} |
| 4 |
\alias{Min} |
| 5 |
\alias{Max} |
| 6 |
\alias{Weighted.Mean} |
| 7 |
\alias{Var} |
| 8 |
\alias{StdDev} |
| 9 |
\alias{Cov} |
| 10 |
\alias{Cor} |
| 11 |
\alias{Range} |
| 12 |
\title{Convenience wrappers for common statistical functions} |
| 13 |
\description{\code{Mean()}, \code{Median()}, etc. are mere wrappers of |
| 14 |
the functions \code{mean()}, \code{median()}, etc. with the |
| 15 |
\code{na.rm=} optional argument set \code{TRUE} by default.} |
| 16 |
\usage{ |
| 17 |
Mean(x, na.rm=TRUE, \dots) |
| 18 |
Median(x, na.rm=TRUE, \dots) |
| 19 |
Min(x, na.rm=TRUE, \dots) |
| 20 |
Max(x, na.rm=TRUE, \dots) |
| 21 |
Weighted.Mean(x, w, \dots, na.rm = TRUE) |
| 22 |
Var(x, na.rm=TRUE, \dots) |
| 23 |
StdDev(x, na.rm=TRUE, \dots) |
| 24 |
|
| 25 |
Cov(x, y = NULL, use = "pairwise.complete.obs", \dots) |
| 26 |
Cor(x, y = NULL, use = "pairwise.complete.obs", \dots) |
| 27 |
Range(\dots, na.rm = TRUE, finite = FALSE) |
| 28 |
} |
| 29 |
\arguments{ |
| 30 |
\item{x}{a (numeric) vector.} |
| 31 |
\item{y}{a (numeric) vector or \code{NULL}.} |
| 32 |
\item{w}{a (numeric) vector of weights.} |
| 33 |
\item{na.rm}{a logical value, see \code{\link[base]{mean}}.} |
| 34 |
\item{use}{a character string, see \code{\link[stats]{cor}}.} |
| 35 |
\item{\dots}{other arguments, passed to the wrapped functions.} |
| 36 |
\item{finite}{a logical value, see \code{\link[base]{range}}.} |
| 37 |
} |