polish_data: polish data from the uncomtrade database

Description Usage Arguments Value

View source: R/polish_data.r

Description

polish data from the uncomtrade database

Usage

1
2
3
4
5
6
7
8
polish_data(
  data,
  merge = FALSE,
  metric_var = c("weight", "value"),
  weight_method = c("mean", "max", "min"),
  continent_info = continent,
  keep_world = FALSE
)

Arguments

data

a tidyverse like tibble obtain from the UNCOMTRADE data base

merge

merge HK and Maco to mainland China or not

metric_var

whether use the weight(by KG) of the cargo or the value(by USD)

weight_method

the evaluation method to polish the metric variable

continent_info

the supplementary data for the continent information

keep_world

whether keep the data for world total

Value

a tidyverse like tibble


zlfccnu/econophysics documentation built on Feb. 23, 2022, 10:22 p.m.