ROWAVG

Purpose:

Produces a column of the means of each row of the input table including NaNs.

Syntax:

ROWAVG(a)

a

-

A series or table.

Returns:

A single column series with the same number of rows as the input table.

Example:

a = {{2,  4,  6},

     {8, 10, 12}}

 

b = rowmean(a)

 

b == {4, 10}

Example:

a = {{2, 4,    6},

     {8, 10, nan}}

 

b = rowmean(a) 

 

b == {4, nan} 

Remarks:

ROWAVG does not assume the number of columns for each row is the same.

 

Unlike ROWMEAN, ROWAVG does not ignore NaN values.

 

For data known not to contain NaN values, ROWAVG is faster than ROWMEAN and produces the same result.

See Also:

COLMEAN

MEAN

ROW

ROWLEN

ROWMAX

ROWMEAN

ROWMIN

ROWREDUCE

ROWSTDEV

ROWSUM

TRANSPOSE