tt_vroom_mof: vroom Data from MOF SOURCE

Description Usage Arguments Value

View source: R/read_mof.R

Description

Reading mof data with 'start date' and 'end date'. If you want to read data with many year you can specify the 'period'.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
tt_vroom_mof(
  start_date,
  end_date,
  period = 0,
  direct = "export",
  money = "usd",
  columns = NULL,
  dep_month_cols = FALSE,
  fixed_cny_nm = FALSE,
  source_path = "SOURCE_MOF"
)

Arguments

start_date

Start date with "year-month" format. ex> "2019-01".

end_date

End date with "year-month" format. ex> "2019-01".

period

Integer.

direct

A string used to specify 'export' and 'import' values. The default value is 'export'.

money

A string used to specify 'usd' and 'twd' value. The default value is 'usd'.

columns

a character vector.

dep_month_cols

create year and month column, default is only year column with "%Y-%m" format.

fixed_cny_nm

boolean: fixed country names. if you want to combine mof and 05_all_data you need to set fixed_cny_cols = TRUE

source_path

source path.

Value

data.frame


chinhungtseng/taitratools documentation built on Jan. 11, 2021, 8:33 p.m.