store_source_species_species: store source species in the database

Description Usage Arguments

Description

store source species in the database

Usage

1
2
store_source_species_species(species, language, source_species,
  source_species_species, datafield, conn, hash, clean = TRUE)

Arguments

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.


inbo/n2kupdate documentation built on May 8, 2019, 5:42 p.m.