Closed AndreMikulec closed 6 years ago
I did get it to work here in R 3.4 ( but not in R 3.5 above) list.unzip(list(p1 = list(a = 1, b = 2), p2 = list(a = 2, b = 3)))
str( list.unzip(list(p1 = list(a = 1, b = 2), p2 = list(a = 2, b = 3))) )
List of 2
$ a: Named num [1:2] 1 2
..- attr(*, "names")= chr [1:2] "p1" "p2"
$ b: Named num [1:2] 2 3
..- attr(*, "names")= chr [1:2] "p1" "p2"
Never mind.
I cleaned out my environment ( removed .Rhistory and .Rdata ), then restarted R 3.5 and tried again. rlist.unzip works.
> list.unzip(list(p1 = list(a = 1, b = 2), p2 = list(a = 2, b = 3)))
$a
p1 p2
1 2
$b
p1 p2
2 3
Please close this issue. Thanks.
When I run the first example of rlist.ungroup, I get the following error.