title: insert data.frame from R to Mongodb
body: <p>I have a Twitter data <strong>CSV</strong> file which I have read in R using <code>read.table</code>, then I have performed some algorithms on that data and got the output as tabular data. I want to insert this tabular data into <code>mongodb</code>. Can any one help?</p>
  
  <p>The tabular data looks something like this:</p>
  
  <pre><code>pqr
            V2                          V1      V3          V4     polarity   emotion
      1  342521635332_318304224958367   FB   2013-03-15   6:43 PM   positive    &lt;NA&gt;
      2  342521635332_325506614238815   FB   2013-03-08   8:23 PM   neutral     sad
      3  342521635332_347654842010216   FB   2013-02-22   8:13 PM   positive    &lt;NA&gt;
      4  342521635332_567940913224072   FB   2013-02-22   6:27 PM   neutral     &lt;NA&gt;
      5  342521635332_318826431554118   FB   2013-02-22   2:22 PM   positive    joy
      6  342521635332_215298638612191   FB   2013-02-20   8:09 PM   negative    angry
      7  342521635332_407970722630311   FB   2013-02-15   8:48 PM   neutral     joy
  
  mongo.insert(m,'abc.xyz',pqr)
  </code></pre>
  
  <p>When I am performing <code>mongo insert</code>, the data is getting inserted into <code>mongodb</code> but the data looks like this in mongodb.</p>
  
  <pre><code>db.xyz.find()
      { "_id" : ObjectId("5176273533da42cdbe49f2c5"), "V2" : [ 3, 5, 6, 9, 4, 2, 7, 1, 10, 8 ], "V1" : [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ], "V3" : [ 6, 5, 4, 4, 4, 3, 2, 1, 1, 1 ], "V4" : [ 5, 8, 7, 4, 1, 6, 10, 9, 3, 2 ], "polarity" : [ 3, 2, 3, 2, 3, 1, 2, 2, 3, 1 ], "emotion" : [  -2147483648,    -2147483648,    -2147483648,    -2147483648,    -2147483648,    -2147483648,    1,  -2147483648,    -2147483648,    -2147483648 ] }
  </code></pre>
  
  <p>I need the data to be inserted into mongodb similar to the tabular data.</p>