Bug#1057439: datamash: "antimode" returns lowest, instead of least common, value
Kingsley G. Morse Jr.
kingsley at loaner.com
Tue Dec 5 05:05:57 GMT 2023
Package: datamash
Version: 1.8-1
Severity: normal
Dear Maintainer,
Thanks for maintaining datamash.
I like that it lets shell scripts calculate
statistics.
The main reason I'm writing is datamash's
"antimode" statistical grouping operation did not
work as I expected.
datamash's man page says its "antimode"
statistical grouping operation is for the "least
common value".
But, my testing suggests datamash's "antimode"
instead returns the lowest value.
My simple test is to
1.) copy
echo -e "1\n1\n2" | datamash antimode 1
to the bash command prompt and
2.) press the <enter> key.
At least on my computer, it returns "1".
But, I expected it to return "2", because "2" is
the least common value.
I suppose maybe either datamash's man page and/or code
could be changed so they're consistent.
Thanks again for datamash!
Kind regards,
Kingsley
-- System Information:
Debian Release: trixie/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable')
merged-usr: no
Architecture: i386 (i686)
Kernel: Linux 6.5.0-1-686-pae (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages datamash depends on:
ii libc6 2.37-12
datamash recommends no packages.
datamash suggests no packages.
-- no debconf information
--
Time is the fire in which we all burn.
More information about the debian-science-maintainers
mailing list