Here are 2 links that contain examples of lists being used:<div><br></div><div><a href="http://dirk.eddelbuettel.com/code/rcpp.armadillo.html" target="_blank">http://dirk.eddelbuettel.com/code/rcpp.armadillo.html</a></div>
<div><a href="http://cran.r-project.org/web/packages/Rcpp/vignettes/Rcpp-quickref.pdf" target="_blank">http://cran.r-project.org/web/packages/Rcpp/vignettes/Rcpp-quickref.pdf</a></div>
<div><br></div><div>Z<br><br><div class="gmail_quote">On Fri, Sep 2, 2011 at 5:35 PM, Noah Silverman <span dir="ltr"><<a href="mailto:noahsilverman@ucla.edu" target="_blank">noahsilverman@ucla.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>Sorry to ask something so simple, but could you point me to an example?</div><div><br></div><div><br></div>Thanks!<div><div><br><div>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><div style="word-wrap:break-word">
<div><div>--</div><div>Noah Silverman</div><div>UCLA Department of Statistics</div><div>8117 Math Sciences Building #8208</div><div>Los Angeles, CA 90095</div></div></div></span></div></span></div></span></div></span></span>
</div>
<br></div><div><div><div>On Sep 2, 2011, at 2:33 PM, Hadley Wickham wrote:</div><br><blockquote type="cite"><div>Return a list of matrices?<br><br>Hadley<br><br>On Fri, Sep 2, 2011 at 4:30 PM, Noah Silverman <<a href="mailto:noahsilverman@ucla.edu" target="_blank">noahsilverman@ucla.edu</a>> wrote:<br>
<blockquote type="cite">Hi,<br></blockquote><blockquote type="cite">I'm starting to use Rcpp (through rinside).<br></blockquote><blockquote type="cite">I want to create several Rcpp::NumericMatrix in my C++ code and then return<br>
</blockquote><blockquote type="cite">them all.<br></blockquote><blockquote type="cite">Is this possible?<br></blockquote><blockquote type="cite">--<br></blockquote><blockquote type="cite">Noah Silverman<br></blockquote><blockquote type="cite">
UCLA Department of Statistics<br></blockquote><blockquote type="cite">8117 Math Sciences Building #8208<br></blockquote><blockquote type="cite">Los Angeles, CA 90095<br></blockquote><blockquote type="cite"><br></blockquote>
<blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Rcpp-devel mailing list<br></blockquote><blockquote type="cite"><a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-project.org</a><br>
</blockquote><blockquote type="cite"><a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br></blockquote>
<blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><br><br><br>-- <br>Assistant Professor / Dobelman Family Junior Chair<br>Department of Statistics / Rice University<br><a href="http://had.co.nz/" target="_blank">http://had.co.nz/</a><br>
</div></blockquote></div><br></div></div></div><br>_______________________________________________<br>
Rcpp-devel mailing list<br>
<a href="mailto:Rcpp-devel@lists.r-forge.r-project.org" target="_blank">Rcpp-devel@lists.r-forge.r-project.org</a><br>
<a href="https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel" target="_blank">https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel</a><br>
<br></blockquote></div><br></div>