Learn R Programming

RMongo (version 0.0.25)

mongoDbReplicaSetConnect: Connecting to a MongoDB Replica Set

Description

Connects to a Mongo DB Replica Set and creates a RMongo object to use with querying and inserting methods.

Usage

mongoDbReplicaSetConnect(dbName, hosts="127.0.0.1:27017")

Arguments

dbName
Database name.
hosts
Comma separated list of hosts member of the replica set. Each entry in the list must have the format [:] . If is omitted, 27017 is used optional

Examples

Run this code
  mongo <- mongoDbReplicaSetConnect("test", "localhost:27017")

Run the code above in your browser using DataLab