Is there an easy way to "invert" the organisation of a list from, say
list(c(TRUE, TRUE, FALSE), c(FALSE, FALSE, FALSE))
[[1]]
[1] TRUE TRUE FALSE
[[2]]
[1] FALSE FALSE FALSE
to
[[1]]
[1] TRUE FALSE
[[2]]
[1] TRUE FALSE
[[3]]
[1] FALSE FALSE
?
I'm working with an lapply command that returns a list organised in a way that's very inconvenient. I didn't manage to turn around the arguments in the lapply command so it produces a list in a way I can further process.