Skip to content
Back to formatted view

Raw Message

Message-ID: <CANnL8gqEp31Nqmbo3nTf9A3t0e3AOFb2=bnxf37hYca0kpvXjw@mail.gmail.com>
Date: 2015-05-02T02:28:59Z
From: Tim Keitt
Subject: [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

-- 
http://www.keittlab.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150501/29d4f942/attachment.html>