mirrorRules: Use mirror rules for balancing trade.

View source: R/mirrorRules.R

mirrorRulesR Documentation

Use mirror rules for balancing trade.

Description

Use mirror rules for balancing trade.

Usage

mirrorRules(data = NA, variable = "qty", suffix = "_m",
  flag = "flag_qty", group_rank = "accu_group", flow = "flow",
  main_flow = 1, discrepancy = "discrep_mirr", official_flags = c("X-",
  "-", "-h"))

Arguments

data

Trade data.

variable

Variable.

suffix

Suffix used for mirror variables.

flag

Flag.

group_rank

Group rank.

flow

Name of the flow variable.

main_flow

Flow to be considered to be better reported. Leave 1 (imports) unless you are very sure that you really want to change this.

discrepancy

Name of the discrepancy variable.

official_flags

Official flags.

Value

Vector with two possible values 'rep' if the data that should remain is the one of the reporter or 'prt' if it should be the partner's.


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