GNU Datamash is designed to closely follow R project’s
(http://www.r-project.org/) statistical functions.
See the files/operators.R file
for the R equivalent code for each of datamash’s operators.
datamash from source code on your local computer,
operators are compared to known results of the equivalent R functions.