csv-table-0.1.0.0: Scripts for manipulating tables stored as CSV files

Safe HaskellSafe
LanguageHaskell2010

Data.CSV.Table.Ops

Contents

Synopsis

Core Operators

join :: Table -> Table -> Table Source

Join two tables by first column (which should be unique)

joinBy :: Col -> Table -> Table -> Table Source

Join two tables by any unique column

Join using default row for missing keys

padJoin :: Row -> Table -> Table -> Table Source

Join two tables by first column, using default row for missing keys

padJoinBy :: Col -> Row -> Table -> Table -> Table Source

Join two tables by any unique column, using default row for missing keys

Difference of two tables

diff :: Table -> Table -> Table Source

Differences of two tables by first column

diffBy :: Col -> Table -> Table -> Table Source

Differences of two tables by any column

Index a table by a key

Order by the values of a particular column

sortBy :: Table -> Col -> Table Source

Sort table by a particular column

Restrict table to a subset of columns

project1 :: Table -> Col -> [Field] Source

Project to a particular column

Move a column to first (leftmost) position

moveColL :: Table -> Col -> Table Source

Swap two columns of a table

Map a function over all rows

mapRows :: (RowInfo -> a) -> Table -> [a] Source

Map a function over all rows of a table