toMapOfLists

fun Array<DoubleArray>.toMapOfLists(colNames: List<String> = emptyList()): Map<String, List<Double>>

Converts the 2D array of doubles to a map that holds the arrays by column. If the column name is not supplied then the column is called col1, col2, etc. The 2D array must be rectangular.

Parameters

colNames

the names of the columns (optional)