Dear all!
Sorry, this question probably was many times discussed,
but I have not found a clear answer.
I have a single Excel-file. I have either zero or some number in each cell.
I've transformed it to csv-file.
I know about some Python-modules, but I failed to apply them.
Does any clear program package exist to change column order or row order?
I need to shuffle both ones separately.
Randomly or in some fixed order. I am interested in both variants.
Sorry again if it is a repeat,
Many thanks!
Natasha
You will need to save the file in some delimited format. Add
-d
option if you use a different delimiter (-d','
) You can put this command in a loop to get all column combinations.You can use awk to print the columns in any order you wish (if file is not tab delimited change
\t
delimiter)If this works for you, I suggest you accept genomax2's answer as the answer since he did all the work. Hope it works out!
@Carlos: I did not address the number of zeros part. If you can extend the solution above for that then that should address everything.
Thank you very much, Carlos!
Sincerely yours,
Natasha
Perfect! Thousand thanks!
What computer language did you use for this?
Or this is just bash-command, isn't it? I've never seen it, sorry.
THANK YOU AGAIN!!!
Sincerely yours,
Natasha