shaveprice: Change quantities when unit prices are too high or too low

Description Usage Arguments

View source: R/clean.R

Description

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

Usage

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))

Arguments

dtf

data frame


EuropeanForestInstitute/tradeflows documentation built on Jan. 7, 2018, 1:08 p.m.