Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-259

Inserting array type data using R driver for mongo.

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Ubuntu 14.04
      R version 3.0
      Local developer machine

    Description

      Hi Team,

      I am trying to Insert a data frame where one of the field is suppose to be Array type. Now, as data frame can not have a "list/vector" as internal field type. I am facing difficulty to insert array in my collection.

      I have similar issue to convert "date" field of string type as ISOdate.

      sample schema -

      date : dd-mm-yy //String type
      brand : [ "americanairlines", "lufthansha"] // String type
      rating : integer
      text : string

      above schema is within data frame and want to insert date as ISODate and brand as an Array while inserting using "rmongodb" package.

      Thanks
      Alok

      Attachments

        Activity

          People

            Unassigned Unassigned
            alok.tripathi@wns.com Alok Tripathi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: