Re: [Rcpp-devel] code explanation

2015-06-10 Thread guillaume chaumet
::create(Rcpp::Named("Frame")=c1, Rcpp::Named("Sync")=c2, Rcpp::Named("Time")=c3, Rcpp::Named("Point_1")=c4); } Everything works, however I want to convert the first, the third and the forth vector into a NumericVector. I have try: NumericVector

[Rcpp-devel] code explanation

2015-06-10 Thread guillaume chaumet
Dear List, Could I have some explanation comments on this code: https://github.com/jjallaire/rcpp-gallery/blob/gh-pages/src/2013-01-22-faster-data-frame-creation.cpp ? I just want to transpose the resulting data frame. However, I want to do it myself but I don't understand the code. Thank you for