sum of gives the total value of attributes in some set. Any attribute values that are not numeric are ignored. The syntax is:

sum of { names }

or

sum of CalculatedValueAttributeName

where:

names is a comma separated list of attribute names or group attribute names,

CalculatedValueAttributeName is the name of some calculated value attribute that gives a list of attribute names or attribute group names.

A typical use of this function would be in a condition. For example, you could define the calculated value attribute:

TotalAnimal:  sum of {cat, dog} in range [0, 100]

and the case would then appear as:

age                   6
sex                   F
birch                 50.0
timothy               63.5
mugwort               12.1
cat                   60.0
dog                   20.0
TotalAnimal           80.0

Note that the value of TotalAnimal comes from the sum of the cat value (60.0) and the dog value (20.0)

See also:

number of

in range