flip | R Documentation |
A convenience function to switch the names and elements of a named character vector or a named list of character vectors.
flip(X)
X |
A named character vector or a named list of character vectors. |
A named character vector or a named list of character vectors. If the former, will be of the same length as <X>. If the latter, will be of the same length as there are unique elements across all vectors in the list.
setNames
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.