Skip to contents

Checks a QWAprofile object before analysis (profiles are derived data and not imported into TRIA). Aborts if the object is not a valid QWAprofile (key columns image_label, year and sector_n for sector profiles or start/end for band profiles missing, mistyped, NA or not unique; bands with start >= end). Warns (or, with strict = TRUE, aborts) on:

  • no measurement column, or all measurement values NA (the count columns <param>_N and mrw, eww, ew_band are not measurements);

  • band profiles with bands of different widths;

  • sector profiles with sector_n < 1.

Usage

check_QWAprofile(x, strict = FALSE)

Arguments

x

A QWAprofile object.

strict

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

Value

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