This must be a data.frame, not a vector of atomic types; otherwise,
an error is thrown; use as.data.frame() as necessary.
Value
(mongo.bson) A mongo.bson object serialized from data.frame.
Details
This function permits the simple and convenient creation of a mongo.bson
object. This bypasses the creation of a mongo.bson.buffer, appending
fields one by one, and then turning the buffer into a mongo.bson object with
mongo.bson.from.buffer().