Skip to contents

Adds missing optional columns to $images and to any already-present optional component tables. For absent hierarchical tables ($sites, $trees, $woodpieces, $slides), pre-fills known values from the hierarchy in $images (the same logic used by the metadata Shiny app). For absent flat tables ($dataset, $authors, $funding, $related), inserts a 0-row skeleton with all schema columns so the user can see the expected fields.

Usage

complete_QWAmetadata(x)

Arguments

x

A QWAmetadata object.

Value

A QWAmetadata object with all optional columns and component tables initialized.

Details

Existing tables are never overwritten; only missing optional columns are added to them.