View source: R/combine.lists.R
combine.lists | R Documentation |
Combines two or more lists in a single one keeping the element names.
combine.lists(list.of.lists)
list.of.lists |
A list of lists. |
It returns a list that is a combination of the lists in the input list.
If the list is not a nested list of list the original input is returned.
combined_list = combine.lists(list.of.lists = list(list(c(1:2), c(1:3)), list("X" = c("A", "B"), "Y" = 2)))
combined_list = combine.lists(list.of.lists = list(c(1:2), c(1:3)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.