A dataframe record type with procedures to select, drop, and rename columns, and filter, sort, split, bind, append, join, reshape, and aggregate dataframes. [Related blog posts]
Full API documentation is available at hinkelman.github.io/dataframe.
$ akku install dataframe
For more information on getting started with Akku, see this blog post.
(import (dataframe))(define df
(make-df*
(grp 'a 'a 'b 'b 'b)
(trt 'a 'b 'a 'b 'b)
(adult 1 2 3 4 5)
(juv 10 20 30 40 50)))
(dataframe-display
(dataframe-filter* df (adult) (> adult 3))) dim: 2 rows x 4 cols
grp trt adult juv
<sym> <sym> <num> <num>
b b 4. 40.
b b 5. 50.