[Rcpp-devel] Return more than one value

Zarrar Shehzad zarrar.shehzad at yale.edu
Sat Sep 3 00:21:15 CEST 2011


Here are 2 links that contain examples of lists being used:

http://dirk.eddelbuettel.com/code/rcpp.armadillo.html
http://cran.r-project.org/web/packages/Rcpp/vignettes/Rcpp-quickref.pdf

Z

On Fri, Sep 2, 2011 at 5:35 PM, Noah Silverman <noahsilverman at ucla.edu>wrote:

> Sorry to ask something so simple, but could you point me to an example?
>
>
> Thanks!
>
>   --
> Noah Silverman
> UCLA Department of Statistics
> 8117 Math Sciences Building #8208
> Los Angeles, CA 90095
>
> On Sep 2, 2011, at 2:33 PM, Hadley Wickham wrote:
>
> Return a list of matrices?
>
> Hadley
>
> On Fri, Sep 2, 2011 at 4:30 PM, Noah Silverman <noahsilverman at ucla.edu>
> wrote:
>
> Hi,
>
> I'm starting to use Rcpp (through rinside).
>
> I want to create several Rcpp::NumericMatrix in my C++ code and then return
>
> them all.
>
> Is this possible?
>
> --
>
> Noah Silverman
>
> UCLA Department of Statistics
>
> 8117 Math Sciences Building #8208
>
> Los Angeles, CA 90095
>
>
> _______________________________________________
>
> Rcpp-devel mailing list
>
> Rcpp-devel at lists.r-forge.r-project.org
>
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
>
>
>
>
>
> --
> Assistant Professor / Dobelman Family Junior Chair
> Department of Statistics / Rice University
> http://had.co.nz/
>
>
>
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20110902/2ff398e6/attachment.htm>


More information about the Rcpp-devel mailing list