Skip to content
Prev 8629 / 10988 Next

[Rcpp-devel] List of Lists to List of Vectors

If I have data like

list(list('a', 1, T), list('b', 2, F), ...)

(list of lists with same types)

and I want to convert to

list(c('a', 'b'), c(1, 2), c(T, F))

(list of vectors)

where the types are not known in advance (its trivial if you know the
sequence of types in advance).

Anyone know how to do that in Rcpp?

THK