sumFlags: Sum the flags indicator variables

View source: R/sumFlags.R

sumFlagsR Documentation

Sum the flags indicator variables

Description

This function will sum two indicator variables of the type XYZ where X, Y or Z are 0 or 1, and the result will be itself a XYZ variable. Note: if new and old are used, flags should not be used, and vice versa.

Usage

sumFlags(new = NA, old = NA, flags = NA)

Arguments

new

The new flag. Should be a scalar.

old

The old flags. Can be a vector.

flags

A numeric vector of flags to be summed.

Value

An indicator variable.


SWS-Methodology/faoswsTrade documentation built on Feb. 13, 2023, 1:04 a.m.