Re: [Rcpp-devel] Iterating an Rcpp::DataFrame

2014-10-09 Thread Dirk Eddelbuettel
On 9 October 2014 at 14:07, Christian Authmann wrote: | Hello, | | this sounds like a newbie question, but I haven't been able to find a | good answer in Rcpp's documentation, source or testcases.. | | Say I have an internal data type which I want to wrap/unwrap as a DataFrame. | | template<>

[Rcpp-devel] Iterating an Rcpp::DataFrame

2014-10-09 Thread Christian Authmann
Hello, this sounds like a newbie question, but I haven't been able to find a good answer in Rcpp's documentation, source or testcases.. Say I have an internal data type which I want to wrap/unwrap as a DataFrame. template<> SEXP wrap(const Foo &foo) { Rcpp::DataFrame dataframe; for (auto