Hi,
I just started using datamash on a small dataset and noticed its calculations are off. And indeed it doesn't calculate basics correctly. Or it somehow depends on the type of display (see below argument combinations):
---
$ seq 1 3 | datamash mean 1 median 1
2 2
$ seq 1 3 | datamash -H mean 1 median 1
mean(1) median(1)
2.5 2.5
$ seq 1 3 | datamash -R 5 -H mean 1 median 1
mean(1) median(1)
2.50000 2.50000
---
$ seq 1 4 | datamash -H -R 2 mean 1 median 1
mean(1) median(1)
3.00 3.00
$ seq 1 4 | datamash -R 2 mean 1 median 1
2.50 2.50
$ seq 1 4 | datamash mean 1 median 1
2.5 2.5
---
Until that gets fixed, it means I can't trust the tool :(
Cheers,
Andreas