in reply to Re: multi column multi file comparison
in thread multi column multi file comparison
Hi CountZero,
Thanks for your posting, I think its pretty close to what I was hoping to produce as an output
Since I've never used such complicated code before, I was not very successful at modifying it for my exact purpose (see below) Could you please help out again with a modification of your Perl script? (not PERL) :)
It looks like, in the output you generated, you did more than compare 1 primary file to all secondary files, but I cant say for sure
Could you help out by modifying your code so that the output is in tabular form for ONLY the primary to EACH secondary file comparison, and no reciprocal comparisons of secondary to primary, or one secondary to another secondary file?
Also, I think in your example output using your script, for Drew and Barry the comparisons for one of the secondary files is missing, only one set of entries is present.. Is that fixed easily?
In terms of range comparison, it is very simple math, but I think you have that implemented right. Anyways, described below:
In the original data file, as a rule, ALWAYS p1<p2, and S1-1 < S1-2, and S2-1 < S2-2
If primary range is numerically p1 to p2 and for secondary ranges they are S1-1 to S1-2 (for 1st secondary file), S2-1 to S2-2 (for 2nd secondary file), then simply
S1-1 >= p1
S1-1 <= p2
S1-2 >= p1
S1-2 <= p2
This means the range S1-1 to S1-2 is nested within the range p1 to p2, or can be the same, but any extension past the primary range is disallowed... Likewise for any other range, S2-1 to S2-2 for another file....Therefore, again
S2-1 >= p1
S2-1 <= p2
S2-2 >= p1
S2-2 <= p2
Thanks again CountZero
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: multi column multi file comparison
by CountZero (Bishop) on May 24, 2011 at 21:23 UTC | |
by onlyIDleft (Scribe) on May 24, 2011 at 23:14 UTC | |
by Anonymous Monk on May 25, 2011 at 04:40 UTC |