setFlag2: Set flags in trade data.

Description Usage Arguments Value

View source: R/setFlag2.R

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

1
2
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 July 14, 2018, 4:06 p.m.