Learn R Programming

rmongodb (version 1.8.0)

print.mongo.oid: Display a mongo.oid object

Description

Display formatted output of a mongo.oid object.

Usage

"print"(x, ...)

Arguments

x
mongo.oid The object to display.
...
Parameters passed from generic.

Value

The parameter is returned unchanged.

Details

Output is tabbed (indented to show the nesting level of subobjects and arrays).

This version is an alias of mongo.oid.print() so that print() will properly handle the mongo.oid class.

See Also

mongo.oid.print, mongo.oid.to.string, mongo.bson.oid, mongo.bson.

Examples

Run this code
oid <- mongo.oid.create()

# all display the same thing
print.mongo.oid(oid)
mongo.oid.print(oid)
print(oid)

Run the code above in your browser using DataLab