Home   >   User Resources   >   Online Help   >   apaMatrix.Sums.Categories
 

 

Function index Version 3.0.0

apaMatrix.Sums.Categories(DataMatrix, CategoryLabels)

Excel=apaMatrix.Sums.Categories(DataMatrix, CategoryLabels)

Result

Returns the category sums of a data matrix. The input data can be jagged.

Syntax

DataMatrix: jagged data matrix, each column containing a time series

CategoryLabels: 1 x c vector of category labels

Remarks

Each column of DataMatrix is assigned to the category given in CategoryLabels. For each row, the numeric values of each category are summed; empty cells, text, logical values and error values are skipped. The output has one row per row of DataMatrix and one column per category. A category without numeric values in a row returns #N/A. CategoryLabels may be a row or a column vector with one label per column of DataMatrix.