title: r fill a dataframe with parallel code
body: <p>I have written a R function which follows this structure:</p>
  
  <pre><code>output &lt;- data.frame(...) # declare the appropriate dataframe
       for (files in folder)
           for (i in loop2)
                 for (j in loop3)
                      res &lt;- ... # compute some result
                      name &lt;- ... # compute some name for the current row
                      output &lt;-  rbind(output,res)  # Fill the data frame...
                      rownames(output)[nrow(output)]&lt;-rowname # ... with a specific row name
  </code></pre>
  
  <p>Apparently, it is terrible to do that in R. I would like to make this treatment parallel, but I don't know how to start. Any idea ? Thanks a lot.</p>