John Kerl

Results 286 comments of John Kerl

There was a sliding-window sum here: https://github.com/johnkerl/miller/blob/master/go/reg-test/input/window.mlr which came out of https://github.com/johnkerl/miller/issues/362

That was nicely parameterized with multiple field names etc but simplifying it down we have this: ``` $ cat seamus.mlr begin { # Use 40 for https://github.com/johnkerl/miller/issues/402 @window_size = 3;...

Then (I think) ``` $ ../c/mlr --icsv --opprint --from seamus.csv \ put -f seamus.mlr \ then step -a delta -f VOLTAGE_avg TIME VOLTAGE VOLTAGE_avg VOLTAGE_avg_delta -2.0096E-09 1.6789E+00 1.678900 0 -1.8096E-09...

Then (I think) ``` $ mlr --icsv --opprint --from seamus.csv \ put -f seamus.mlr \ then step -a delta -f VOLTAGE_avg \ then filter 'abs($VOLTAGE_avg_delta) > 0.03' TIME VOLTAGE VOLTAGE_avg...

@spmundi re editing comments -- there is a `...` at the upper-right-hand corner of each comment box. Click on that & you'll see 'edit'. Yes, the header-only CSV file ...............................

Should we still execute the `end` blocks (if any) in the `put` statement? For example if there are 1000 records in the input data and you did `exit(0)` on the...

... aha, it should be awk-like in this regard too :) https://www.gnu.org/software/gawk/manual/html_node/Exit-Statement.html

@aborruso `mlr reshape -r` accepts comma-delimited regexes, just like `mlr reshape -i foo,bar` gets `foo` and `bar`. So unfortunately what's happening here is one regex is `^.{2` and the second...

This affects `mlr cut -r`, `mlr merge-fields -r`, `mlr rename -r`, and `mlr reshape -r`.