store_analysis_dataset: store analysis and dataset in the database

Description Usage Arguments

Description

store analysis and dataset in the database

Usage

1
2
store_analysis_dataset(analysis, model_set, analysis_version, dataset,
  analysis_dataset, clean = TRUE, hash, conn)

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

dataset

a data.frame with names fingerprint, filename, datasource and import_date

analysis_dataset

A data.frame linking the file_fingerprint from analysis to the fingerprint from dataset.

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


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