Skip to contents

Checks that the objects of a dataset match each other, as the last check before a submission (check_QWAimages(), check_QWAmetadata(), check_QWAdata() and check_QWAprofile() check each object on its own). Aborts if fewer than two objects are given or an object is not valid. Warns (or, with strict = TRUE, aborts) on:

  • meta and data: images in meta but not in data$cells or data$rings, and vice versa; woodpiece_label or slide_label in data$rings differing from meta; ring years after outmost_year + 1 (an incomplete outermost ring). Images without outmost_year are reported as not checked.

  • data and profile: years of an image in profile without a row in data$rings (the flags app and extract_rwl() refuse such profiles).

  • meta and profile, if data is not given: images in profile but not in meta.

Usage

check_consistency(meta = NULL, data = NULL, profile = NULL, strict = FALSE)

Arguments

meta

A QWAimages or QWAmetadata object (its images component is used).

data

A QWAdata object.

profile

A QWAprofile object.

strict

If TRUE, abort on the first issue instead of warning.

Value

TRUE if no issue was found, FALSE otherwise (invisibly).