Macaw.Data.Operations.Transforms (macaw_data v0.12.0)
View SourceThe table operations of macaw_data's package (spec/04 §4), each a transform
(Macaw.Data.Transform) ported from visualize's Chart.Transform.Data, and what they
share: finding a column by either spelling of its name, reading a chunk's view of one,
a reading as seconds, and a per-row selection. Each is a column-native step
(Macaw.Data.Operations.Step, spec/04 §1.4); none reads rows.
| Op | Options (* required) |
|---|---|
filter | field*, test, value |
take | n*, side |
window | field*, from, to, latest |
lttb | fields*, n* |
m4 | fields*, width* |
sort | field*, order |
fold | fields*, as |
stack | fields*, order, offset |
bin | field*, thresholds, as, fn |
aggregate, sum | field*, fn* (aggregate only), by, as |
spectrum | field*, time, every, samples, window, detrend, as |
Summary
Types
What a step reads a column's values as (spec/04 §3.1): :number; :time, a time or a
number as seconds (seconds!/3); :positive, a number above zero (a log scale's x);
:comparable, numbers, or times of any kinds, not both; :point, a number or a point [x, y];
:any, anything.
Types
@type reading() :: :number | :time | :positive | :comparable | :point | :any
What a step reads a column's values as (spec/04 §3.1): :number; :time, a time or a
number as seconds (seconds!/3); :positive, a number above zero (a log scale's x);
:comparable, numbers, or times of any kinds, not both; :point, a number or a point [x, y];
:any, anything.
Functions
@spec all() :: [module()]
The modules of the table operations, in spec/04 §4's order.