Description Usage Arguments Value
Use unit prices and conversion factors to complete missing quantity data. Handle unit prices that are out of bound. Add quantity estimates reported by the trade partner. The outcome is returned as a data frame.
1 2 3 | clean(dtf, replacebypartnerquantity = TRUE, shaveprice = TRUE,
addmissingmirrorflow = TRUE, outputalltables = FALSE,
includeqestimates = TRUE)
|
dtf |
data frame |
replacebypartnerquantity, |
when TRUE call replacebypartnerquantity() |
shaveprice |
when TRUE, call shaveprice() |
outputalltables |
when TRUE return a list of data frames containing the cleaned dataset and all tables used to compute it conversion factors, regional unit prices, choice between reporter and partner flows |
deleteextracolumns |
when TRUE, keep only columns from column_names$validated_flow |
data frame with the same information as the original data frame. With columnes added by the various clean functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.