标签DELIM文件合并为一个单一的文件我有几个txt文件3列在这样每个文件: 文件1:,使用R
ProbeID X_Signal_intensity X_P-Value
xxx 2.34 .89
xxx 6.45 .04
xxx 1.09 .91
xxx 5.87 .70
. . .
. . .
. . .
文件2:
ProbeID Y_Signal_intensity Y_P-Value
xxx 1.4 .92
xxx 2.55 .14
xxx 4.19 .16
xxx 3.47 .80
. . .
. . .
. . .
文件3 :
ProbeID Z_Signal_intensity Z_P-Value
xxx 9.40 .82
xxx 1.55 .04
xxx 3.19 .56
xxx 2.47 .90
. . .
. . .
. . .
在上述所有文件中,ProbeID列的值是相同的,但不是其他列。现在,我想用一个for循环到一个文件中这样对上述所有文件组合:
ProbeID X_intensity X_P-Value Y_intensity Y_P-Value Z_intensity Z_P-Value
xxx 2.34 .89 1.4 .92 9.40 .82
xxx 6.45 .04 2.55 .14 1.55 .04
xxx 1.09 .91 4.19 .16 3.19 .56
xxx 5.87 .70 3.47 .80 2.47 .90
请你帮帮我。
查看相关问题的组合:http://stackoverflow.com/questions/3764292/loading -many-files-at-once,http://stackoverflow.com/questions/4234179/combine-the-multiple-files-with-one-header,... –