title: How to save a dataframe with list to csv file in R
body: <p>I don't know if is possible...</p>
  
  <p>I would save the file to import it in others future sessions.</p>
  
  <p>I wanna save this data.frame in a csv file (it's a list of list containing vectors):</p>
  
  <pre><code>&gt; operacions&lt;-list(list(Nom="Victor",Bolis= c("Negro","azul","verde")),list(Nom="Dani",Lapices=c(1:4)))
  &gt; operacions
  [[1]]
  [[1]]$Nom
  [1] "Victor"
  
  [[1]]$Bolis
  [1] "Negro" "azul"  "verde"
  
  
  [[2]]
  [[2]]$Nom
  [1] "Dani"
  
  [[2]]$Lapices
  [1] 1 2 3 4
  </code></pre>
  
  <p>But it give me an error:</p>
  
  <pre><code>&gt; write.csv2(operacions, "file.csv",row.names = FALSE)
  Error in data.frame(list(Nom = "Victor", Bolis = c("Negro", "azul", "verde" : 
    arguments imply differing number of rows: 3, 4
  </code></pre>