title: How to get R Output into csv file?
body: <p>The answer might be easy but I am stuck:</p>
  
  <p>I use Twitter API 1.1 to get tweets of a certain account. By using the following function </p>
  
  <pre><code>user &lt;- getUser("xxx")
  userTimeline(user, n=300, maxID=NULL, sinceID=NULL, includeRts=FALSE)
  </code></pre>
  
  <p>I get about 150 tweets back. It looks like that:</p>
  
  <pre><code>[[125]]
  [1] "AlexSalmond: Many thanks to @welovehistory carpentry &amp;amp; joinery apprentice    Hannah Ross for the table she's built for Bute House http://t.co/1CnuACirLC"
  
  [[126]]
  [1] "AlexSalmond: Well done to all involved in #ArmedForcesDay &amp;amp; #BannockburnLive â€“ making Stirlingâ€™s Big Weekend a massive success http://t.co/ho3Az1O9cF"
  
  [[127]]
  [1] "AlexSalmond: Enjoyed conversation and public Q&amp;amp;A with @DerekBateman2 last week â€“ you can listen here: http://t.co/alCkf14zij #IndyRef"
  </code></pre>
  
  <p>How can I save these data to a csv file? </p>
  
  <p>By using <code>write.csv</code> it gives me the following mistake:</p>
  
  <pre><code>Error in as.data.frame.default(x[[i]], optional = TRUE) : 
  cannot coerce class "structure("user", package = "twitteR")" to a data.frame
  </code></pre>