oce (version 1.1-1)

handleFlagsInternal: Low-level function for handling data-quality flags

Description

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.

Usage

handleFlagsInternal(object, flags, actions, debug = 0)

Arguments

object

An oce object, i.e. an object that inherits from oce-class.

flags

A named list of numeric values, e.g. list(good=1,bad=2).

actions

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.

debug

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.

Value

A copy of object, modified as indicated by flags and actions.