[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-datamash] Feature request: ignore NaN

From: Brandon Invergo
Subject: [Bug-datamash] Feature request: ignore NaN
Date: Fri, 21 Nov 2014 17:21:41 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Hi Assaf,

I have a small feature request: to ignore cells that are empty or
contain NaN (or NA) when calculating stats like the mean on a column.
In other words, like R's "na.rm" parameter.

Currently, if there's an NaN in a single row, the entire mean is NaN.
If a cell is empty, datamash returns an error (invalid numeric input).
It would be nice (well, necessary in my case) to be able to tell
datamash to ignore those values.

Other than that, I'm finding datamash to be super useful.


Brandon Invergo

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]