
Finalize the analysis look-up table for export
Source:R/finalize_analysis_lut.R
finalize_analysis_lut.RdCompletes the session analysis_lut created by generate_analysis_lut()
immediately prior to export. Adds ETL-time metadata (r_session_json,
data_grade), and, when a database connection is supplied, resolves
project/fishery names to database UUIDs and validates the final column
set against the model_analysis_lut schema.
Arguments
- analysis_lut
lookup table created during the model estimation process which stores a session-specific analysis_id key and metadata about the analysis.
- resolved_params
user-input parameters defined during the model estimation process.
- conn
a valid
DBIconnection, or NULL for local export. @seealsoconnect_creel_db()
Value
The finalized analysis_lut, ready for write_lut() (database)
or local archiving.