: Dirk Eddelbuettel [mailto:e...@debian.org]
> Sent: zondag 15 mei 2011 21:22
> To: Nick Sabbe
> Cc: 'Dirk Eddelbuettel'; rcpp-de...@r-forge.wu-wien.ac.at
> Subject: RE: [Rcpp-devel] Matrix columns
>
>
> Nick,
>
> I fear that you think that because data.frame
Nick,
On 15 May 2011 at 20:51, Nick Sabbe wrote:
| Hi Dirk. Thanks for your time and trouble.
| I agree there are simpler ways to achieve this functionality, but if I don't
| get around this, I won't be able to produce the thing I'm really after.
I fear that you think that because data.frame is
Hi Dirk. Thanks for your time and trouble.
I agree there are simpler ways to achieve this functionality, but if I don't
get around this, I won't be able to produce the thing I'm really after.
> Why is retMat on the right-hand side if you try to fill it? Makes no real
sense.
>From rcpp-quickref:
On 14 May 2011 at 23:12, Nick Sabbe wrote:
| I?ve been trying the following, with the main part ripped from rcpp-quickref:
|
| SEXP dfr2Mat(SEXP dfr)
A much easier way is to, say, call as.matrix() in R and then assign to an
NumericMatrix object in C++.
Another way is turn the Data.Frame i
Nick:
I had a similar problem a few weeks ago. The underscore is part of the Rcpp
namespace. So I added using namespace Rcpp at the beginning of my function,
and then all worked well. I can't tell from the compiler output if that is
*exactly* what the problem is, but it's worth taking a look