unitjoin | R Documentation |
joins a data.frame or vector of strings with variable and unit separated into a data.frame with variable and unit joined as 'variable (unit)'. Use magclass::unitsplit to split them again
unitjoin(x, unit = NULL, col = "variable")
x |
data.frame or vector of strings |
unit |
vector of strings. If NULL, col 'unit' in x is used |
col |
column name. Default: variable |
data.frame or vector of strings, dependent on x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.