I see what you're trying to do, almost
How do you decide what filename gets what columns?
Based on your sample data, these are two rows (headers then rows) that go into three files , this is how you're wanting to split that up
<GSOR> vnir_1 vnir_2 vnir_3
<GSOR> vnir_4 vnir_5 vnir_6
<GSOR> vnir_7 vnir_8 vnir_9
This is the first data row split up and ready to end up in three different files
310015 0.37042 0.36909 0.36886
310015 0.36698 0.36615 0.36449
310015 0.36404
What is the filename for the first 3 columns? Second 3 columns? Last "3" columns? And this is repeated for every row in the original data?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.