title: Combining multiple data.frames using R
body: <p>I have several txt files in which each txt file contains 3 columns(A,B,C).
  Column A will be common to all txt files. Now I want to combine txt files with coulmn A appearing only once while the other columns (B and C) of respective files. I used <code>cbind</code> but it creates a data frame with repeats of column A, which I dont want. The column A must be repeated only once. Here is the R code I tried:</p>
  
  <pre><code>data &lt;- read.delim(file.choose(),header=T)   
  data2 &lt;- read.delim(file.choose(),header=T)
  data3 &lt;- cbind(data1,data2)
  write.table(data3,file="sample.txt",sep="\t",col.names=NA)
  </code></pre>