store all species related information in the database
1 2 3 | store_species_group_species(species, language, source_species,
source_species_species, datafield, species_group, species_group_species,
hash, conn, 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. |
species_group |
the data.frame with species groups. Must contains local_id, description and scheme. Other variables are ignored. local_id must have unique values. |
species_group_species |
as data.frame linking the local species group id to the local species id. Must contain variables species_local_id and species_group_local_id. Other variables are ignored. |
hash |
the hash of the update session |
conn |
a DBIconnection |
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.