Skip to content
Prev 7461 / 10988 Next

[Rcpp-devel] Copying a NumericVector from a list within a list

On Sat, Apr 12, 2014 at 11:06 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
[snip]
I've noticed (I think...) having to do this sort of thing, but I want
to ask a question to clarify: is it possible to have the above code
work, but if you instead try:

NumericVector fromList(List outer, std::string name) {
(outer[0])["p"]
}