<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr">On Thu, May 19, 2016 at 7:07 AM Dirk Eddelbuettel <<a href="mailto:edd@debian.org">edd@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
I'd consider Rcpp::Function as a last resort. You do not need it here.<br></blockquote><div><br></div><div><span style="font-size:13px">Yes I don't like using Rcpp:Function either however it isn't easy to convert a data.frame into matrix in Rcpp. You have to write code to deal with factors and non-numeric columns that might be passed in. Also the original question was asked for SEXP objects. And I'm not sure how you would deal with those without Rcpp::Function. If there is an easy way I would be interested in learning about it. </span><br></div><div><br></div><div>Rgds</div></div></div>