core.matrix clojure datasets
✓ Published0🌍 Public
EEleonore9
Last edited May 23, 2016
Created on May 23, 2016
This example demonstrates how the Clojure library `core.matrix.dataset` structures tabular data, exposing three key attributes through map-like access. By treating the dataset as a map, it shows that the `keys` function returns `(:column-names :columns :shape)`, allowing direct retrieval of column headers, data content, and dimensions. The code uses `:column-names` to access the vector of column names `[:a :b]`, `:columns` to get the transposed data `[[1 2 3] [11 12 13]]`, and `:shape` to reveal the matrix size `[3 2]`. The dataset is initialized from a vector of Clojure maps, with the rendering shown as a formatted table. The example highlights the library’s API for inspecting structured data programmatically.
AI-generated description