readdbproduct: Load trade flows for one product from a database table of...

Description Usage Arguments Examples

View source: R/database.R

Description

Connect to the raw database and load all tradeflows for the given product code, for all years, in all directions, for all reporter and all partners.

Usage

1
readdbproduct(productcode_, tableread, convcountrynames = FALSE)

Arguments

productcode_

the code of a product

tableread

the database table to read from

convcontrynames

logical weather to convert contry names this should not be needed if the database server is rendering utf-8 data.

Examples

1
2
3
4
5
## Not run: 
othersawnwod <- readdbproduct(440799, "raw_flow_yearly")
head(othersawnwod[c("year","reporter","partner","flow","tradevalue","quantity","weight")])

## End(Not run)

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