krangl / krangl / kotlin.Array

Extensions for kotlin.Array

mapNonNull

Allows to process a list of null-containing elements with an expression. NA will be kept where they were in the resulting table.

fun <T, R> Array<T?>.mapNonNull(expr: (T) -> R?): List<R?>

mean

fun Array<Double>.mean(): Double

median

fun Array<Double>.median(): Double

sd

fun Array<Double>.sd(): Double?