Description Usage Arguments Details Value See Also Examples
Convert a data.frame to a mongo.bson object.
1 |
df |
(data.frame) The data.frame to convert. This must be a data.frame, not a vector of atomic types; otherwise,
an error is thrown; use |
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()
.
(mongo.bson) A mongo.bson object serialized from data.frame
.
mongo.bson.to.list
,
mongo.bson,
mongo.bson.destroy
.
1 2 | df <- data.frame(name=c("John", "Peter"), age=c(32,18))
b <- mongo.bson.from.df(df)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.