Difference between revisions of "Average"
(jrfconvert import) |
(jrfconvert import) |
||
Line 4: | Line 4: | ||
====average==== | ====average==== | ||
− | Gets | + | Gets double values for row values of the column and calculates the average value of those values. |
+ | |||
+ | Returns empty if there is no valid rows | ||
'''Syntax''' | '''Syntax''' | ||
− | average('' | + | average(''columnName'') |
'''Arguments''' | '''Arguments''' | ||
− | '' | + | ''columnName'': Is the name of a column in the data table. |
'''Return type''' | '''Return type''' | ||
− | number | + | number or empty |
'''Examples''' | '''Examples''' | ||
− | + | //get the average score of all students | |
− | |||
− | // | ||
− | |||
− | |||
− | + | number a = average(Score) where (true); | |
'''Availability''' | '''Availability''' | ||
Line 32: | Line 30: | ||
Version 4.8 | Version 4.8 | ||
__NOTOC__ | __NOTOC__ | ||
− | <!-- imported from file: | + | <!-- imported from file: 758.htm--> |
Revision as of 09:56, 7 March 2011
average
Gets double values for row values of the column and calculates the average value of those values.
Returns empty if there is no valid rows
Syntax
average(columnName)
Arguments
columnName: Is the name of a column in the data table.
Return type
number or empty
Examples
//get the average score of all students
number a = average(Score) where (true);
Availability
Version 4.8