aggregateByOrNull

internal inline fun <T, reified V : R, R> Aggregator<V & Any, R>.aggregateByOrNull(data: DataFrame<T>, crossinline rowExpression: RowExpression<T, V>): DataRow<T>?

Selects the best matching value in the dataframe using the provided Aggregator by the provided rowExpression.

Type Parameters

V

is used to infer whether there are nulls in the values fed to the aggregator!


internal inline fun <T, reified V : R, R> Aggregator<V & Any, R>.aggregateByOrNull(data: DataFrame<T>, column: ColumnReference<V>): DataRow<T>?

Selects the best matching value in the dataframe using the provided Aggregator by the provided column.

Type Parameters

V

is used to infer whether there are nulls in the values fed to the aggregator!