Remove raw data values if data values of better quality exist

keepOnlyBestQualityControlLevel(x, dbg = TRUE)

Arguments

x

data frame with columns ValueID, LabSampleCode, VariableCode, QualityControlLevelID

dbg

if TRUE (default) debug messages are shown else not