powered by
trans list into data.frame
list2df(x, rownames = TRUE, colnames = NULL, method = "row")
tibble
list
use rownames or not
colnames of the output
one of row, col, set each item as row or col, default as row
row, col
x <- list( c("a", "1"), c("b", "2"), c("c", "3") ) list2df(x, colnames = c("char", "num")) x <- list( c("a", "b", "c"), c("1", "2", "3") ) list2df(x, method = "col")
Run the code above in your browser using DataLab