in reply to using PDL->transpose on CSV file
There are also some snippets laying around in old nodes, for taking slices from 2-d arrays, you could just take slices and use it to convert from rows to columns or vice-versa.
Here is one I have handy( use Super Search)
#!/usr/bin/perl # 2-d array-slice my @arr = (['a','b','c'], ['h','i','j'], ['x','y','z']); print map $_->[1], @arr; print "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using PDL->transpose on CSV file
by bfdi533 (Friar) on Feb 08, 2006 at 21:13 UTC |