store analysis and dataset in the database
1 2 | store_analysis_dataset(analysis, model_set, analysis_version, dataset,
analysis_dataset, clean = TRUE, hash, conn)
|
analysis |
a data.frame with file_fingerprint, model_set_local_id, location_group, species_group, last_year, seed, analysis_version, analysis_date, status and status_fingerprint. |
model_set |
a data.frame with the model sets. Must have variables "local_id", "description", "first_year", "last_year" and "duration". The variable "long_description" is optional. |
analysis_version |
an n2kAnalysisVersion object. See
|
dataset |
a data.frame with names fingerprint, filename, datasource and import_date |
analysis_dataset |
A |
clean |
perform all database operations within a transaction and clean up the staging tables. Defaults to TRUE. |
hash |
the hash of the update session |
conn |
a DBIconnection |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.