harvestrecent: Deprecated harvest recent data @export

Description Usage Arguments

View source: R/harvest.R

Description

harvestmonthlyarchive Downloads archive data from comext and transfer all sub products of the given product codes to the database. The structure of the table template 'raw_comext_monthly' should already be present in the database. The database structure is regularly recreated in harvestrecent, so there is no need to recreate it harvestmonhtlyarchive. This function can be run on a yearly basis when new archives become available.

harvestyearlyarchive downloads yearly archive and transfer it to the database. The structure of the database table 'raw_comext_yearly' should already present in the database.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
harvestrecent()

harvestmonthlyarchive(
  ...,
  rawdatafolder,
  startyear,
  tabletemplate = "raw_comext_monthly_template",
  template = getOption("tradeharvester")$template
)

harvestyearlyarchive(
  ...,
  rawdatafolder,
  startyear,
  tabletemplate = "raw_comext_yearly_template",
  template = getOption("tradeharvester")$template
)

Arguments

...

parameters passed to transfer7zfolder2db


stix-global/eutradeflows documentation built on Nov. 13, 2020, 9:23 p.m.