store_analysis: store source species in the database

Description Usage Arguments

Description

store source species in the database

Usage

1
2
store_analysis(analysis, model_set, analysis_version, analysis_relation,
  conn, hash, clean = TRUE)

Arguments

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 get_analysis_version

analysis_relation

an optional data.frame with analysis and source_analysis. analysis contains the file_fingerprint of the current analysis. source_analysis contains the file_fingerprint of the parent analysis

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.