ls2categvec | R Documentation |
Converts a list to a vector repeating list-element names, while vector names are the list elements.
ls2categvec(your_list)
your_list |
A list. |
A vector with the same elements as your_list
, but with the names of the list elements repeated as many times as the number of elements in each list element.
ls2categvec(list(a = 1, b = 2, c = 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.