如果我有一个字符向量列表列表:
l1 <- list(a=list(x=c(1,4,4),y=c(24,44)),
b=list(x=c(12,3)),
c=list(x=c(3,41),y=c(3214,432),z=c(31,4,5,1,45)))
> l1
$a
$a$x
[1] 1 4 4
$a$y
[1] 24 44
...
如何将其转换为保留名称的单个平面列表?
> wantedList
$ax
[1] 1 4 4
$ay
[1] 24 44
...