store source species in the database
1 2 | store_source_species_species(species, language, source_species,
source_species_species, datafield, conn, hash, clean = TRUE)
|
species |
a data.frame with species metadata. Must contain at least 'local_id', 'scientific_name' and 'nbn_key'. Other variable names must match the values in 'language$code'. |
language |
the data.frame with language Must contains code and description. Other variables are ignored. code and description must have unique values. |
source_species |
a data.frame with source species metadata. Must contain local_id, description, datafield_local_id and extrenal_code. Other variables are ignored. |
source_species_species |
as data.frame linking the local species id to the local source_species id. Must contain species_local_id and source_species_local_id. Other variables are ignored. |
datafield |
a data.frame with datafield metadata. Must contain variables local_id, datasource, table_name, primary_key and datafield_type. |
conn |
a DBIconnection |
hash |
the hash of the update session |
clean |
perform all database operations within a transaction and clean up the staging tables. Defaults to TRUE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.