krangl / krangl / median

median

fun DataCol.median(removeNA: Boolean = false): Double?

Calculates the median 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