View source: R/mermaid_import_project_data.R
mermaid_import_project_data | R Documentation |
Import data into MERMAID Collect. By default this function just checks records to see if they can successfully be imported into Collect - if not, a warning is returned with import errors. If there are no import errors, then running the function again with the setting dryrun = FALSE
will actually import the records into Collect.
mermaid_import_project_data(
data,
project,
method = c("fishbelt", "benthicpit", "benthiclit", "benthicpqt", "habitatcomplexity",
"bleaching"),
dryrun = TRUE,
clearexisting = FALSE,
token = mermaid_token()
)
data |
Data to import. Either a data frame or a file path. |
project |
A way to identify the project(s). Can be project IDs (passed as a character vector directly) or projects resulting from |
method |
Method to import data for. One of "fishbelt", "benthiclit", "benthicpit", "benthicpqt", "bleaching", "habitatcomplexity" |
dryrun |
Whether the import is a dry run. If |
clearexisting |
Whether to remove ALL existing records for that method. Should only be used with extreme caution, if e.g. you made a mistake in import and want to overwrite ALL existing fishbelt / benthic PIT / etc records. |
token |
API token. Authenticate manually via |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.