[Rcpp-devel] Using data-frames as sets of rows (e.g. using R data-frames as lookup tables in C++)

2013-09-06 Thread Mark Clements
By my understanding, Rcpp is better suited to working with data-frames as columns rather than working with data-frames as a set of rows. However, occasionally it may be useful to work with the set of rows. How have others considered this use case? [As a motivating example based on simulations i

Re: [Rcpp-devel] Using data-frames as sets of rows (e.g. using R data-frames as lookup tables in C++)

2013-09-06 Thread Romain Francois
Hello, I have not looked at this in detail. You might want to have a look at RcppExtras on github. Something hadley and I are working on to manipulate data frames. We have e.g an implementation of unique that is much faster than r builtin silly version that pastes columns together as one st

Re: [Rcpp-devel] Using data-frames as sets of rows (e.g. using R data-frames as lookup tables in C++)

2013-09-06 Thread Dirk Eddelbuettel
On 6 September 2013 at 14:20, Mark Clements wrote: | By my understanding, Rcpp is better suited to working with data-frames as | columns rather than working with data-frames as a set of rows. However, | occasionally it may be useful to work with the set of rows. How have others | considered this u

Re: [Rcpp-devel] Modules and Boost and larger data sets

2013-09-06 Thread Simon Zehnder
Hi Dirk, thanks for the quick answer and to the many suggestions and correction you gave! I have now a better idea how to design the package. On Sep 6, 2013, at 2:20 PM, Dirk Eddelbuettel wrote: > > On 6 September 2013 at 13:46, Simon Zehnder wrote: > | Dear Rcpp-Users and Rcpp-Devels, > |

Re: [Rcpp-devel] Modules and Boost and larger data sets

2013-09-06 Thread Dirk Eddelbuettel
On 6 September 2013 at 13:46, Simon Zehnder wrote: | Dear Rcpp-Users and Rcpp-Devels, | | this goes especially to Dirk and Romain, the developers of RcppBDT. Well its's mostly me for the scope of it, with numerous invaluable assists from Romain. The released version is far behind the SVN versi

[Rcpp-devel] Modules and Boost and larger data sets

2013-09-06 Thread Simon Zehnder
Dear Rcpp-Users and Rcpp-Devels, this goes especially to Dirk and Romain, the developers of RcppBDT. I am right now writing on a package for market microstructure data - usually large tick datasets with trade times and security symbols. I read the Rcpp Book about Modules and when starting as u