Upper and lower bound on prices have to be checked and quantity replaced accordingly This function comes after joinpricecvfbounds(), estimatequantity() and after addpartnerflow() so that the input data frame contains information on the price bounds check this order in the source of the clean() function. Check unit price for all flows recalculate unit price based on quantity estimate Those which have been estimated from tradevalue will have correct prices Those which have been estimated from weight might be changed as well Split trade flows between those which are within the price bounds and those which are out of the price bounds. For trade flows outside the price bounds, use the unit price to estimate the quantity
1 2 3 4 5 | shaveprice(dtf, verbose = getOption("tradeflows.verbose", TRUE))
shavepricew(dtf, verbose = getOption("tradeflows.verbose", TRUE))
shaveconversion(dtf, verbose = getOption("tradeflows.verbose", TRUE))
|
dtf |
data frame |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.