title: Convert dataframe / .csv to comma delimited .txt file
body: <p>Does anyone know how to easily convert a .csv / or a dataframe (inserted from that .csv into R) to a comma delimited .txt file?
  For my analysis / the package to work I need a format like this:</p>
  <p><strong>cell1, cell2, cell3, ...</strong></p>
  <p>So comma then space between every cell of every row in my dataset.</p>
  <p>In R I've tried:</p>
  <pre><code>write.table(df,&quot;df.txt&quot;,sep=&quot;, &quot;, na = &quot;&quot;,row.names=FALSE, col.names = FALSE, append = FALSE)
  </code></pre>
  <p>However, the output looks like this:</p>
  <p><strong>&quot;cell1&quot;, &quot;cell2&quot;, &quot;cell3&quot;, &quot;&quot;, &quot;&quot;, &quot;&quot;,</strong></p>
  <p>First of all, the &quot;&quot; are an issue that I need to get rid of.
  Secondly, every row has a different length, which means that the empty cells in shorter rows get the &quot;&quot; which is also a problem trying to run this in the package.</p>
  <p>Other people using the package told me to use GNU emacs to convert it to the .txt file I need but I have no experience with this editor and it seems rather complicated to learn just for the conversion of this one (big) file</p>
  <p>Cheers!</p>
  <p>Edit:</p>
  <p>Figured out how to get rid of the &quot;&quot; but still got the issue of the empty cells being separated by commas</p>
  <pre><code>write.table(test,&quot;test2.txt&quot;,sep=&quot;, &quot;, na = &quot;&quot;, eol = &quot;\r\n&quot;, row.names=FALSE, col.names = FALSE, append = FALSE, quote = FALSE)
  </code></pre>