Learn R Programming

compositions (version 2.0-8)

meanrow: The arithmetic mean of rows or columns

Description

Computes the arithmetic mean.

Usage

meanRow(x,..., na.action=get(getOption("na.action")))
          meanCol(x,..., na.action=get(getOption("na.action")))

Value

The arithmetic means of the rows (meanRow) or columns (meanCol) of x.

Arguments

x

a numeric vector or matrix of data

...

arguments to mean

na.action

The na.action to be used: one of na.omit,na.fail,na.pass

Author

K.Gerald v.d. Boogaart http://www.stat.boogaart.de

Details

Computes the arithmetic means of the rows (meanRow) or columns (meanCol) of x.

See Also

mean.rplus

Examples

Run this code
data(SimulatedAmounts)
meanCol(sa.tnormals)
meanRow(sa.tnormals)

Run the code above in your browser using DataLab