I have 3 text files c.dat, n.datand the h.dat
contents seem in this format
c.dat n.dat h.dat
1 0.ccc 3 1.nnn 1 2.hhh
2 0.ccc 4 1.nnn 2 2.hhh
4 0.ccc 5 1.nnn 5 2.hhh
Required Conclusion:
1 0.ccc Inf 2.hhh
2 0.ccc Inf 2.hhh
3 Inf 1.nnn Inf
4 0.ccc 1.nnn Inf
5 Inf 1.nnn 2.hhh
6 Inf Inf Inf
7 ....
Each file has ~ 100 lines, but they do not always start with 1 and are not always sequential.
I need to align 3 files on the first column, so if other files do not have it, it is populated with something like NA or NaN or Inf ....
Thank!
source
share