Description Usage Arguments Value
For one product (at the 6 digit level), read and clean all trade flows, then Write flows into the database table(s) validated_flow updates will be done on a product basis, The function will:
Read all flows having the given productcode in tableread
Delete all flows having the given productcode in tablewrite (between all reporter and partner countries in all years)
Use clean()
to clean the data frame
Write validated flows to tablewrite
1 | cleandbproduct(productcode, tableread, tablewrite, ...)
|
productcode |
code of the product trade flows to be validated |
tableread |
name of the table to read from |
tablewrite |
name of the table to write to (all rows for productcode will be deleted in this table before writing) |
... |
further arguments passed to the clean function |
TRUE if write to db succesded, otherwise return FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.