Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.05 KB

File metadata and controls

43 lines (30 loc) · 1.05 KB

Scheme (R6RS) Dataframe Library

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]

Documentation

Full API documentation is available at hinkelman.github.io/dataframe.

Installation

Akku

$ akku install dataframe

For more information on getting started with Akku, see this blog post.

Import

(import (dataframe))

Quick Example

(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.