[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A new 'transpose' coreutil
From: |
Assaf Gordon |
Subject: |
Re: A new 'transpose' coreutil |
Date: |
Thu, 17 Dec 2015 11:25:29 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
Hello,
On 12/17/2015 06:00 AM, Pádraig Brady wrote:
On 17/12/15 05:06, Ryan wrote:
Hi everybody,
I looked through the rejected feature requests and did not find this.
I and others I know have often wished for an efficient 'transpose'
Interesting.
GNU Datamash ( http://www.gnu.org/software/datamash/ ) can transpose files from
the command line:
$ cat 1.txt
Genes NOX1 DcP HH
Sample A1 A2 B3
Counts 514 542 490
$ datamash transpose < 1.txt
Genes Sample Counts
NOX1 A1 514
DcP A2 542
HH B3 490
In addition to performing other various statistical and text-related operations
(in the coming version: also cross-tabulation, a.k.a pivot-tables).
regards,
- assaf