invert_list | R Documentation |
switch names/values in a list of named vectors
invert_list(x)
x |
a list of named vectors |
test <- list(foo = c("a" = "first letter"),
bar = c("b" = "second letter",
"c" = "third letter"))
invert_list(test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.