Hello!!
respected gurus.
I have this problem of combining multiple files with 2 columns each and then finding out the closest match to the reference column.
I will try to explain it more explicitly:-
I have got first file called "test" with number of rows and only two columns separated by comma. The second column in this file we can call as "reference column".
file "test" reads
5,11
10,22
15,33
..,.. and so on
After doing number of experiments I have got number of files
i called "Run1", "Run2", etc. each with its first column
same as "test".
example
file "Run1" reads
5,10
10,24
15,35
..,.. etc
first I need to combine the "test" file and "Run1 --RunN" files. so that it has common first column and rest of columns from "test" and "Run.." files.
After this file is formed i need to find the sum of squares of differences between the "reference column" and "Run.." columns i.e
if i take first three rows of the "test" file and "Run1" file mentioned above
i get combined file as:
5,11,10,
10,22,24
15,33,25
------------
and i need:-
A1= sq(11-10)+ sq(22-24) + sq(33-35)
where:-
sq= square
A1= sum of square of differences for reference column and
run1 column.
the programme should give these answers for all the run files "Run1", "Run2" etc.
I hope i am clear.
Thanks in advance
respected gurus.
I have this problem of combining multiple files with 2 columns each and then finding out the closest match to the reference column.
I will try to explain it more explicitly:-
I have got first file called "test" with number of rows and only two columns separated by comma. The second column in this file we can call as "reference column".
file "test" reads
5,11
10,22
15,33
..,.. and so on
After doing number of experiments I have got number of files
i called "Run1", "Run2", etc. each with its first column
same as "test".
example
file "Run1" reads
5,10
10,24
15,35
..,.. etc
first I need to combine the "test" file and "Run1 --RunN" files. so that it has common first column and rest of columns from "test" and "Run.." files.
After this file is formed i need to find the sum of squares of differences between the "reference column" and "Run.." columns i.e
if i take first three rows of the "test" file and "Run1" file mentioned above
i get combined file as:
5,11,10,
10,22,24
15,33,25
------------
and i need:-
A1= sq(11-10)+ sq(22-24) + sq(33-35)
where:-
sq= square
A1= sum of square of differences for reference column and
run1 column.
the programme should give these answers for all the run files "Run1", "Run2" etc.
I hope i am clear.
Thanks in advance