title: R: Unusual output from write.table
body: <p>I am trying to export my simple data frame into a .txt file. My data frame BridgeGateHourlyDirection looks like:</p>
  <p><img src="https://i.stack.imgur.com/ny50H.png" alt="6 columns" /></p>
  <p>I used the statement below</p>
  <pre><code>write.table(BridgeGateHourlyDirection, &quot;X:/Maria/Trends/BridgeGateHourlyDOWDirection.txt&quot;, sep=&quot;\t&quot;,row.names=FALSE, quote=FALSE, eol=&quot;\n&quot;,na=&quot;NA&quot;,dec=&quot;.&quot;)
  </code></pre>
  <p>The output looks to be quite unusual and is not readable containing c(). It looks like this:
  <img src="https://i.stack.imgur.com/QcHma.png" alt="text file output" /></p>
  <p>Has anyone experienced this before and found a solution?</p>
  <pre><code>sapply(BridgeGateHourlyDirection,class)
          Year        Month         Hour     DayClass        EBTot        WBTot 
     &quot;integer&quot;    &quot;integer&quot;    &quot;integer&quot;  &quot;character&quot; &quot;data.frame&quot; &quot;data.frame&quot; 
  </code></pre>
  <p>Thank you!</p>