export | R Documentation |
This a Python wrapper of the insert_many()
method of package pymongo to insert a list of documents as a collection in a database in MongoDB.
export(filepath, dbname, user, password, interpreter = NULL)
filepath |
CSV file path. |
dbname |
Database name. |
user |
User name. |
password |
Password. |
interpreter |
Path of the Python interpreter (optional) |
Confirmation message if exporting was successful. Else an error.
## Not run:
library(innovar)
data("cars")
write.csv(cars, "cars.csv", row.names = FALSE)
dbname = "<database-name>"
user <- Sys.getenv("USER")
password <- Sys.getenv("PASSWORD")
export("cars.csv", dbname, user, password)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.