This function carries out low-level processing relating to data-quality flags,
as a support for higher-level functions such handleFlags,ctd-method
for
ctd
objects. In most cases, users will not call handleFlagsInternal
directly.
handleFlagsInternal(object, flags, actions, debug = 0)
An oce
object, i.e. an object that inherits from oce-class
.
A named list
of numeric values, e.g. list(good=1,bad=2)
.
A character vector indicating actions to be carried out for the corresponding
flags
values. This will be lengthened with rep
if necessary, to be
of the same length as flags
. A common value for actions
is "NA"
, which
means that data values that are flagged are replaced by NA
in the returned result.
An integer indicating the degree of debugging requested, with value 0
meaning to act silently, and value 1
meaning to print some information about the
steps in processing.
A copy of object
, modified as indicated by flags
and actions
.