View source: R/createDictonary.R
createDictionary | R Documentation |
createDictionary
creates a dictionary for a set of values given a set of unique integer codes.
createDictionary(meta, code, value)
meta |
a data frame or named list. An object containing the codes and values. |
code |
character or integer. Name or index of the location of codes in meta. |
value |
character or integer. Name or index of the location of values in meta. |
A vector where the value at the index position equals to code, matches the value corresponding to code.
Given that the function creates the dictionary by hashing the values at the literal position of code, the length of the output vector will be equal to the maximum code value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.