title: How to add data by columns in csv file using R?
body: <p>I have information that is contained in vectors, for example:</p>
  
  <pre><code>sequence1&lt;-seq(1:20)
  sequence2&lt;-seq(21:40)
  ...
  </code></pre>
  
  <p>I want to append that data to a file, so I am using:</p>
  
  <pre><code>write.table(sequence1,file="test.csv",sep=",",append=TRUE,row.names=FALSE,col.names=FALSE)
  write.table(sequence2,file="test.csv",sep=",",append=TRUE,row.names=FALSE,col.names=FALSE)
  </code></pre>
  
  <p>But the issue is that this is added all in one column like:</p>
  
  <pre><code>1
  2
  3
  ...
  21
  22
  ...
  40
  </code></pre>
  
  <p>I want to add that data in columns so that it ends up like:</p>
  
  <pre><code>1         21
  2         22
  3         23
  ...       ...
  20        40
  </code></pre>
  
  <p>How I can do that using R?</p>