safeRowBindOfListElements | R Documentation |
row-bind data frames in a list of lists
safeRowBindOfListElements(x, elementName)
x |
list of lists each of which contains a data frame in element elementName |
elementName |
name of list element in each sublist of x which contains a data frame |
data frame resulting from "row-binding" data frames.
x <- list(
list(
number = 1,
data = data.frame(x = 1:2, y = 2:3)
),
list(
number = 2,
data = data.frame(x = 11:12, y = 12:13)
)
)
safeRowBindOfListElements(x, "data")
# also working if the column names of the data frames in the "data" elements
# differ.
x[[1]]$data$z = 13:14
safeRowBindOfListElements(x, "data")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.