SumTableRow

This function evaluates to the sum of a table slot’s values, in the given row, from the given start column to the given end column.

Description

Sum of the values of a table slot row between two columns.

Type

NUMERIC

Arguments

Type

Meaning

1

SLOT

the table slot whose values to sum

2

NUMERIC

row

3

NUMERIC

start column

4

NUMERIC

end column

Evaluation

The function loops over each value in the given row of the given table slot, beginning with the start column and ending with the end column (inclusive). Each value is added to the previous sum. The function evaluates to this sum. Rows and columns are numbered beginning with zero.

Mathematical
Expression

 

 

 

Comments

Units are not required for row and column indices and, if provided, will be ignored. If the row, start column, or end column do not exist in the slot or if the start column is greater than the end column, this function aborts the run with an error. If one of the slot values within the desired time range is a NaN, the function exits the rule with an early termination.

 
SumTableRow(Chickamauga Data.units, 0, 0, 1)
 
13.95