as.data.frame_ | R Documentation |
as.data.frame.list fails if an element of the list is a list. This version works in that eventuality.
as.data.frame_(x, row.names = NULL, optional = FALSE, ...)
## Default S3 method:
as.data.frame_(x, row.names = NULL, optional = FALSE, ...)
## S3 method for class 'list'
as.data.frame_(x, row.names = NULL, optional = FALSE, ...)
x |
list of elements of equal length possibly including lists |
row.names |
default NULL. See as.data.frame |
optional |
logical. See as.data.frame |
... |
See as.data.frame |
as.data.frame_(default)
: "default"
method
as.data.frame_(list)
: "list"
method
alist <- list(x = 1:3, a = letters[1:3], lst = list(a=1, b= 'a', c= list(1:4)))
as.data.frame_(alist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.