Wide Long Reshape
Reshape helpers for moving between wide and long tabular layouts.
Phase 1 ships only the long-to-datasets split, which is the operation the importer needs to support LONG-layout files. Wide-to-long and long-to-wide DataFrame helpers will be added when a downstream consumer (e.g. batch expansion) requires them.
Functions
Link copied to clipboard
Splits parallel id / value columns into one numeric series per distinct id, preserving first-encountered id order. Used by the database reader, which has already-typed columns rather than string rows.
fun splitLong(rows: List<Array<String>>, headers: List<String>, idColumn: String, valueColumn: String): List<NamedDataset>
Splits a long-format table into one numeric series per distinct id.