Thanks for your response, and for pointing me to the tips on posting- quite new around here and much appreciate it.
Here are some more details, to add to my original question.
The matrix looks like this:
NA 0.0132 0.0116 0.0082 0.0157 0.0246 0.0000 0.0338 0.0000 0.0173
NA NA 0.0084 0.0042 0.0025 0.0126 0.0061 0.0107 0.0214 0.0177
NA NA NA 0.0159 0.0078 0.0216 0.0133 0.0080 0.0029 0.0067
NA NA NA NA 0.0185 0.0362 0.0167 0.0266 0.0000 0.0093
NA NA NA NA NA 0.0268 0.0046 0.0134 0.0000 0.0000
NA NA NA NA NA NA 0.0063 0.0112 0.0138 0.0000
NA NA NA NA NA NA NA 0.0128 0.0239 0.0000
NA NA NA NA NA NA NA NA 0.0102 0.0188
NA NA NA NA NA NA NA NA NA 0.0088
The elements are tab separated.
All I want in the end, is for the NAs to be replaced by the numbers, no other operations need to be done. I need this because a program I want to run requires the input formatted in this way.
I will take a look at PDL as sugegsted.
Thanks again,
Savita
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.