title: Convert R objects to csv/text files
body: <p>Has anyone tried to convert R objects to text files ? I have R objects created from Seqmeta package and am trying to convert it to text file</p>
  
  <pre><code>load("variant.Rdata")
  write.csv(variants, file="variants.csv")
  Error in as.data.frame.default(x[[i]], optional = TRUE, stringsAsFactors = stringsAsFactors) :
    cannot coerce class ""seqMeta"" to a data.frame
  </code></pre>
  
  <p>Then I tried</p>
  
  <pre><code>dump(variant, file="variant_file")
  Error in FUN(X[[1L]], ...) : invalid first argument
  </code></pre>
  
  <p>How can I convert the data to csv format ?</p>