Inserting array type data using R driver for mongo.

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Component/s: None
    • None
    • Environment:
      Ubuntu 14.04
      R version 3.0
      Local developer machine

      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

            Assignee:
            Unassigned
            Reporter:
            Alok Tripathi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: