Skip to content
Prev 7697 / 10988 Next

[Rcpp-devel] Speed up of the data.frame creation in DataFrame.h

Christian,
The change does break the unit tests, and after I have studied a little more how the classes are structured, I have realized that this change by itself is not enough. At this point ?as.data.frame? conversion has to be called, as the internal structure of the DataFrame class seems to be more like a regular list and cannot be simply classified as ?data.frame? as I originally thought.

As for the limited use function, that could be a good idea, say in the cases when all the vectors in data frame are of the same length (as often is the case if you deal with real-life data) and simply throw exception if they are different.

But since I realized my solution is incomplete and ultimately incorrect, I?d like to investigate a little more and see if I can do it correctly and check if the benchmark would improve in that case.

Best,
Dmitry
On Jun 8, 2014, at 3:33 PM, Christian Gunning <xian at unm.edu> wrote: