copyListElements | R Documentation |
Copy List Elements into a List of Lists
copyListElements(x, y, name = deparse(substitute(y)))
x |
list of lists |
y |
list of elements |
name |
name of target list element |
x
with each sublist being extended by list element name
having been taken from y
x <- list(list(a = 1), list(b = 2), list(c = 3))
y <- list("b1", "b2", "b3")
str(copyListElements(x, y, "b"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.