createreport: Create data completeness report for comtrade data

Description Usage Arguments Examples

View source: R/report.R

Description

This function will generate reports for any template that is product specific. Giving information about all world trade flows for one product.

Usage

1
2
3
4
5
createreport(tfdata, template, fileprefix = NULL, filesuffix = NULL,
  productcodeinreport = NULL, reporterinreport = NULL,
  inputpath = system.file("templates", package = "tradeflows"),
  outputdir = "reports", encoding = "UTF-8", toc = TRUE,
  keep_tex = FALSE)

Arguments

tfdata

a dataframe containing trade flows data that will be passed to R code run by the template

template

name of the template file, including .Rmd extension

fileprefix

character string at the begining of the generated pdf file name

productcodeinreport

numeric or character string leave this variable empty if there are many products

reporterinreport

character string leave this variable empty if there are many reporters

inputpath

path of the template, defaults to package internal path

outputdir

name of the output directory relative to getwd()

encoding,

encoding of the template file. See also iconv The names of encodings and which ones are available are platform-dependent. All R platforms support "" (for the encoding of the current locale), "latin1" and "UTF-8".

Examples

1
2
3
4
## Not run: 
createreport(NULL, template="allproducts.Rmd", reporterinreport ="China")

## End(Not run)

EuropeanForestInstitute/tradeflows documentation built on Oct. 7, 2019, 10:57 a.m.