[Rcpp-devel] trouble creating a dataframe

Dirk Eddelbuettel edd at debian.org
Tue Jun 5 01:46:49 CEST 2012


On 4 June 2012 at 18:48, Steve Lianoglou wrote:
| On Mon, Jun 4, 2012 at 6:02 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
| >
| > On 4 June 2012 at 17:28, Pratibha Rana wrote:
| [snip]
| 
| > | The value of res was printed at line 159 in Vector__create.h . Using Wrap()
| > | makes it worse. I really need help. I have been trying to do this for 2 days
| > | now.
| 
| > What about the working example I just to the list?
| >
| > What about the following adapted from the unit test file for dataframes:
| 
| Or, if you're really in dire straits and assuming you've got the list
| you want to convert to a data.frame built already: you can just pass
| it back to R and convert it w/ `as.data.frame`.

Good advice, I had meant to say that too -- this is exactly what I used to do
before we added the DataFrame class to Rcpp.  

Dirk
 
-- 
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com  


More information about the Rcpp-devel mailing list