Description Usage Arguments Note Author(s) Examples
This function swaps vector elements with their names.
1 | restructure(x) # where x is a named vector
|
x |
Numerical values are converted to character.
Joost van de Weijer
1 2 3 4 5 | (x=structure(1:3,names=letters[1:3]))
restructure(x)
restructure(x)
restructure(x)
# etc.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.