avg
Calculates the arithmetic mean.
Syntax
Arguments
Returned value
- The arithmetic mean, always as Float64.
NaNif the input parameterxis empty.
Example
Query:
Result:
Example
Create a temp table:
Query:
Get the arithmetic mean:
Query:
Result:
avg
Introduced in: v1.1
Calculates the arithmetic mean.
Syntax
Arguments
Returned value
Returns the arithmetic mean, otherwise returns NaN if the input parameter x is empty. Float64
Examples
Basic usage
Empty table returns NaN