Which package should I use to connect R with MongoDB?

I wonder what are the main differences between packages rmongodband RMongofor connecting Rto MongoDB. What are the advantages and disadvantages of these two packages?

+4
source share
1 answer
library(rmongodb)

your connection details are likely to be different from these defaults

host <- "someone.com:10200"
username <- "myuser"
password <- "mypassword"
db <- "testdatabase"

connect to mongo and then create the function has the following signature

mongo <- mongo.create(host=host , db=db, username=username, password=password)

Besides

> library("RMongo")
> mongo  < - mongoDbConnect("db")

RMango:MongoDB database interface for R. The interface is provided through Java calls to the mongo-java driver.
rmongodb:This R package provides an interface to the NoSQL MongoDB database using the MongoDB C driver.

RMongo , , , rmongodb

rmongodb

  • MongoDB Querying, inserting
  • MongoDB, JSON BSON
  • BSON MongoDB
  • MongoDB
  • MongoDB , , "Grid"
  • "(GridFS) MongoDB.
  • mongo.apply, mongo.summary, mongo.get.keys,...
+11

Source: https://habr.com/ru/post/1524249/


All Articles