bug-datamash
[Top][All Lists]
Advanced

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

Re: [Bug-datamash] a problem with transpose function of datamash


From: Assaf Gordon
Subject: Re: [Bug-datamash] a problem with transpose function of datamash
Date: Fri, 07 Nov 2014 15:51:30 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

Hello Jianfeng,

On 11/07/2014 01:09 AM, xiao jianfeng wrote:
I just came across datamash a few weeks ago, and I think it is really a 
fantastic tool to work with column data files.

Thank you for your kind words.

However, I found a problem with the transpose function of datamash, and I don't 
know if it is a bug or a feature.

<...>

$ printf "1\t2\t3\ta\n4\t5\t\tb\n6\t7\t8\tc\n" | datamash transpose --no-strict
1       4       6
2       5       7
3       N/A     8
a       N/A     c

<...>
Please let me know how do you think.

This is a bug, or at least a non-optimal behaviour.

Luckily, it has already been improved in the current GIT repository.

With this version, your input is transposed as expected, without the need for 
"--no-strict":

===
$ printf "1\t2\t3\ta\n4\t5\t\tb\n6\t7\t8\tc\n" | datamash transpose
1       4       6
2       5       7
3               8
a       b       c
===

I hope to release a new version (1.0.7) soon.
Until then, you can get the code from:
http://files.housegordon.org/datamash/src/datamash-1.0.6.42-36cd.tar.gz

Or directly from the git repository:
http://git.savannah.gnu.org/cgit/datamash.git/


Regards,
 - Assaf




reply via email to

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