list.2.replicated.name.vec | R Documentation |
Converts a list to a vector, with list elements names replicated as many times as many elements each element had.
list.2.replicated.name.vec(ListWithNames = Sections.ls.Final)
ListWithNames |
A list. |
A vector with the same elements as ListWithNames
, but with the names of the list elements repeated as many times as the number of elements in each list element.
ListWithNames <- list(a = 1, b = 2, c = 3)
list.2.replicated.name.vec(ListWithNames)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.