View source: R/preAggregateMultipleTLRows.R
preAggregateMultipleTLRows | R Documentation |
Do a first aggregation of raw Tariff Line data, when possible.
preAggregateMultipleTLRows(rawdata = NA)
rawdata |
Raw TL (a tibble). |
Tariff Line (TL) data can have multiple rows. They can be aggregated (by taking also into account the possible different units) when value, quantity, and weight are present. Other two possibilities is to do the aggregation when weight is always missing, but quantity is always present and vice versa. When aggregation is not possible the record will be left untouched as the missing variable will be imputed in the imputation step.
The original TL data after aggregation, when possible (see
details). A new variable (nrows
) is created and indicates the
original number of rows that were aggregated.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.