Learn R Programming

RMongo (version 0.0.25)

mongoDbConnect: Connecting to a MongoDB database

Description

Creates a RMongo object to use with querying and inserting methods.

Usage

mongoDbConnect(dbName, host="127.0.0.1", port=27017)

Arguments

dbName
Database name.
host
Host name. Default to localhost: 127.0.0.1. You can specify a remote host. optional
port
Port number. Default to mongodb's default port 27017. optional

Examples

Run this code
  mongo <- mongoDbConnect("test", "127.0.0.1", 27017)

Run the code above in your browser using DataLab