Description Usage Arguments Value Examples
It acts similiarly to Excel's AVERAGEIF function. It calculates the average of the values where certain criterias are met.
1 |
range |
Give this function argument range for it to evaluate your criteria. |
criteria |
Give this function a criteria so it can check the range for this criteria. |
average_range |
Give this function a range for it to average on. So first it evaluates range argument based on criteria and it averages the numbers that meet the criteria. |
It takes the average of the column data where there are certain conditions met. In the example you can see we are testing if Species equal setosa and wherever this holds true we average the numbers. Example's result show the average of the Petal width of setosa Species. Function will always return numeric class.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.