Displaying 1 result from an estimated 1 matches for "contary".
Did you mean:
contrary
2008 Aug 20
0
unlist on nested pairlists
...My expectation was that unlist(y, recursive=FALSE) would be the following length 3 list:
list(a1=1, a2=2, b=list(b1=3:4, b2=5:6))
However
str(unlist(y, recursive=FALSE))
## List of 4
## $ a1 : int 1
## $ a2 : int 2
## $ b.b1: int [1:2] 3 4
## $ b.b2: int [1:2] 5 6
I'm tempted to say that, contary to the documentation, (partial)
unlisting has in fact been applied to a list component of x (x$b): it
contributes 2 components to the result, rather than one. I say partial
because the numeric vectors in x$b have not been broken up into
separate elements in the answer. However, I imagine that this...