In this article
Functions in data analysis allow the aggregation of values from compound expressions like grids or numeric lists.
There is a number of functions aggregating values of "vector" (or compound) expressions (like grids, multi variables, numeric lists, etc.). Such functions take a "vector" argument of a certain type and produce a scalar result from all values in a compound value.
| Function | Argument / Result | Comment | Example |
|---|---|---|---|
| Boolean vector (multi) / Boolean | True if at least one value in the argument is true |
Returns ""true"" if any of the options in |
all(v) | Boolean vector (multi) / Boolean | True if all values in the argument are true |
Returns ""true"" if all of the options in |
vcount(v) | any vector type / Integer | Number of non-null values in the argument |
Returns the number of options in the question |
vselected(v) | Boolean vector (multi) / Integer | Number of selected ("true") values in a boolean vector |
Returns the number of selected options in |
vsum(v) | Numeric vector type / Source element type | Sum of non-null values in the argument |
Returns the sum of the non-null values in |
vaverage(v) (alias vavg(v)) | Numeric vector type / Real | Average of non-null values in the argument |
Returns the average of the non-null values in |
vmin(v) | Comparable vector type / Source element type | Minimum of non-null values in the argument |
Returns the smallest value in |
vmax(v) | Comparable vector type / Source element type | Maximum of non-null values in the argument |
Returns the biggest value in |
vmini(v) | Comparable vector type / Category | Category code containing minimal value in the argument |
Returns the label of the category in the variable |
vmaxi(v) | Comparable vector type / Category | Category code containing maximal value in the argument |
Returns the label of the category in the variable |