setFlag2: Set flags in trade data.

View source: R/setFlag2.R

setFlag2R Documentation

Set flags in trade data.

Description

The generated flag will be a numeric variable like 1XY where X and Y are dummies that are equal to 1 if the flag applies to the value or quantity variables, respectively, and 0 otherwise.

Usage

setFlag2(data = NA, condition = NA, type = NA, flag = NA,
  variable = NA)

Arguments

data

Trade data.

condition

A logical condition where the flags should be changed.

type

The type of flag to set: "status" or "method".

flag

The value of the flag to set (e.g., "e" for estimated data).

variable

The variable that gets the flag: "value", "quantity".

Value

Populates the flag variable.


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