library(tradeflows) library(knitr) opts_knit$set(root.dir="../..") # file paths are relative to the root of the project directory library(dplyr)
Issue 14 reported by Janne, concerns issues when overview report are generated for one year only.
# Data only tfdataissue <- createoverviewreport("France", beginyear=2012, endyear=2014, dataonly=TRUE) # Report createoverviewreport("China",beginyear=2012, endyear=2012, template="overviewtradevalue.Rmd", outputdir="reports/something/", tableread="validated_flow_yearly", jfsqlevel=2)
productitto <- readdbtbl("product_work") %>% filter(nomenclature == "HS12") %>% select(product = name_short, productcode = code) productitto %>% explain() productitto2 <- readdbtbl("product_work") %>% select(product = name_short, productcode = code) %>% distinct() productitto2 %>% explain()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.