[Rcpp-devel] Dynamically creating data.frame/list (of vectors)

Davor Cubranic cubranic at stat.ubc.ca
Mon Nov 26 21:41:09 CET 2012

On 2012-11-23, at 1:36 PM, Robert A'gata wrote:

> Inside onEventA, I'd like to be able to create a blank data.frame or
> list with zero length vector. Once my data frame or list object is
> constructed, I'd like to append a new row to it each time onEventB is
> invoked. How can I achieve this in Rcpp? Thank you.

Can you possibly stay in STL and keep rows in std::list, and only construct a Rcpp::DataFrame before you return to R?


More information about the Rcpp-devel mailing list