createoverviewreport: Create reports for all products in the given reporter country

Description Usage Arguments Details Examples

View source: R/report.R

Description

The location of the report can be changed by changing the outputdir parameter. See arguments of createreport() to determine in which folder the template is located.

Usage

1
2
3
4
5
createoverviewreport(reporter_, productcode_ = NULL, beginyear = 0,
  endyear = 9999, template = "overviewtradevalue.Rmd",
  outputdir = "reports/overview", tableread = "validated_flow_yearly",
  jfsqlevel = 2, fileprefix = gsub("\\..*", "", template),
  dataonly = FALSE, ...)

Arguments

reporter_

character name of a country reporting data

productcode_

vector of product code, NULL by default to generate the report for all products

template

name of the template file.

outputdir

path where report will be saved, relative to the working directory or an absolute path.

jfsqlevel

integer 1 or 2 the level of jfsq product names to be used, see the internal table classificationitto

...

further arguments passed to createreport()

Details

jfsqlevel determines the product group levels, there are approximatley a dozen of product groups under jfsq level 1 and sixty product groups under level 2. Depending on the level choosen, there will be a dozen or sixty titles in the overview report.

Examples

1
2
3
4
5
## Not run: 
createoverviewreport("China", beginyear = 2010, endyear = 2013, outputdir = "/tmp")
createoverviewreport("China", beginyear = 2010, endyear = 2013, inputpath = "inst/templates")

## End(Not run)

EuropeanForestInstitute/tradeflows documentation built on Oct. 8, 2018, 10:05 a.m.