krangl / krangl / sum

sum

fun DataCol.sum(removeNA: Boolean = false): Number?

Calculates the arithmetic mean of the column values.

Parameters

removeNA - If true missing values will be excluded from the operation

Exceptions

MissingValueException - If removeNA is false but the data contains missing values.

InvalidColumnOperationException - If the type of the receiver column is not numeric