View source: R/utils-mongodb.R
add_data_to_db | R Documentation |
Rpackage file: utils-mongodb.R
add_data_to_db(
data,
collection = "data",
data_type,
database = "rhomis",
url = "mongodb://localhost",
projectID,
formID,
overwrite = F
)
data |
The tibble dataset that you would like to write |
collection |
The collection which you would like to add the data to |
data_type |
The type of data which is being added (e.g. indicatorData, processedData,metaData...) |
database |
The database where the data is going to be saved |
url |
The url of the database you are saving the database to. The default mongoDB url is used as the default here |
projectID |
The ID of the project you would like to save |
formID |
The ID of the form you would like to save |
overwrite |
Whether or not to overwrite a previously saved version of the project |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.