setFlag3: Set flags in trade data.

View source: R/setFlag3.R

setFlag3R Documentation

Set flags in trade data.

Description

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

Usage

setFlag3(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", "weight", "quantity".

Value

Populates the flag variable.


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