You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is intentional -- it ignores records unless they have all aggregation fields. But the design should be changed to handle records which have any of the specified fields.
Fixed in head & will go out with the 2.3.2 release.
$ cat input
a=1
b=2
$ cat input | mlr stats1 -a sum -f a
a_sum=1.000000
$ cat input | mlr stats1 -a sum -f b
b_sum=2.000000
$ cat input | mlr stats1 -a sum -f a,b
a_sum=1.000000,b_sum=2.000000
Similarly fixed are mlr stats2 and mlr step. There is some separate work yet to be done on mlr join.
Thanks for reporting this -- it had been in the back of my brain for some time, but I hadn't gotten round to doing anything about it. :)
input:
cat input | mlr stats1 -a sum -f a
:but
cat input | mlr stats1 -a sum -f a,b
gives empty outputThe text was updated successfully, but these errors were encountered: