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

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")))

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

Details

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

Value

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

Author(s)

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

See Also

Examples

data(SimulatedAmounts)
meanCol(sa.tnormals)
meanRow(sa.tnormals)

compositions

Compositional Data Analysis

v2.0-1
GPL (>= 2)
Authors
K. Gerald van den Boogaart <boogaart@hzdr.de>, Raimon Tolosana-Delgado, Matevz Bren
Initial release
2021-01-08

We don't support your browser anymore

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