Skip to content
Back to formatted view

Raw Message

Message-ID: <514FC44F.2080804@gmail.com>
Date: 2013-03-25T03:28:15Z
From: Marco
Subject: [Rcpp-devel] Multidimensional List (List of Lists)
In-Reply-To: <20815.48660.621101.200183@max.nulle.part>

> a) You posted twice. That's close to spamming.
Sorry, for some stupid reason I thought I had send the email to the 
wrong address.


>
> b) Your example is incomplete and non-reproducible. Not a way to earn brownie
> points either.
=[

I guess you're right, I promise to do better next time.


> #include <Rcpp.h>
>
> using namespace Rcpp;
>
> // [[Rcpp::export]]
> List reclist(){
>      List a(2);
>      List output(2);
>      output[0] = IntegerVector::create( 10, 20 ) ;
>      output[1] = IntegerVector::create(_["foo"] = 20,
> 				      _["bar"] = 30 ) ;
>      a[0] = output;
>      a[1] = output;
>      return a;
> }
This worked well. Thanks for the help.