Skip to content

elisehuard/plywood

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plywood

A clojure library intended to bring functionality of dplyr to clojure.core.matrix.dataset.

Usage

Filter function

Takes a vector of columns, and a corresponding filter predicate function taking the values of those columns and returning a boolean-like.

 (filter-dataset test-ds1 ["a" "b" "c"] (fn [a b c] (and (> a b) (not (nil? c)))))

Join

left-join: takes all the rows on the left dataset and attempts to match them by the columns on the right dataset. If no match is found the row is filled with nils. If more than one match is found, more than one row is created, and the dataset is returned.

(left-join test-ds1 test-ds2 [:a])

right-join: symmetrical to left-join.

(right-join test-ds1 test-ds2 [:a]

inner-join: if no match is found in the other dataset, the row is simply dropped.

Roadmap

TODO: join on different column names using maps for equality group-by - summarize using functions order rows defining ordering function

Credits

The filter and join functions were started by my esteemed colleagues Tom Coupland and Antony Woods.

License

Copyright © 2017 FIXME

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

dplyer functions for core.matrix.dataset (WIP)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published