title: Outputting a Dataframe in R to a .csv
body: <p>So I'm trying to write a .csv file based on a data frame in R, but for some reason I keep getting the following error:</p>
  
  <pre><code>Error in .External2(C_writetable, x, file, nrow(x), p, rnames, sep, eol,  : 
    unimplemented type 'list' in 'EncodeElement
  </code></pre>
  
  <p>This is what traceback() is giving:</p>
  
  <pre><code>5: write.table(df, file = "df.csv", col.names = NA, 
         sep = ",", dec = ".", qmethod = "double")
  4: eval(expr, envir, enclos)
  3: eval(expr, p)
  2: eval.parent(Call)
  1: write.csv(df, file = "df.csv")
  </code></pre>
  
  <p>Any solution?</p>