Description Usage Arguments Author(s) See Also Examples
Many people like the convenience that a list
of
data.frame
s offer; however, some would prefer to
have each data.frame
as a separate object in their
workspace. This function "unlists" a list
of
data.frame
s, creating objects named after the
list
and the list item's names (or index position,
if names are not available).
1 | unlistDF(mylist)
|
mylist |
The name of your |
Ananda Mahto
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Some example data
## List with named items
qwerty <- list(A = data.frame(A = 1:2, B = 3:4),
B = data.frame(C = 5:6, D = 7:8))
## List with unnamed items
ytrewq <- list(data.frame(A = 1:2, B = 3:4),
data.frame(C = 5:6, D = 7:8))
ls(pattern = "qwer|ytre")
unlistDF(qwerty)
unlistDF(ytrewq)
ls(pattern = "qwer|ytre")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.