View source: R/classifications.R
map_to_classification | R Documentation |
Currently only works for N-to-1 concordances
map_to_classification(origin_id, origin_value, origin_etc, concordance)
origin_id |
vector of length N with the ids of the original classification |
origin_value |
vector of length N with the values of the original classification |
origin_etc |
vector of length N OR data.frame with nrow = N with additional attributes (such as Year, Country, ...) |
concordance |
either matrix with given col- and row-names (=concordance matrix) or data.frame. Expressing the way how the original classification shall be mapped to the 'new' classification. If it is a matrix the rows represent the original ids, the columns the new ids. If it is data.frame the first row represents the original ids, the second the new ones. |
a data.frame / data.table (currrently)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.