Organise your data the R way
NEW! - more stuff and in a github repo - https://github.com/ifknot/data_frame
I like R for statistics. The variables in R are lexically scoped and dynamically typed.
I like C++ for just about everything else. C++ is a strongly typed language and it is also statically-typed; every object has a type and that type never changes.
I want to do some simple statistics in C++ but I can't imagine doing that without a heterogenous Data Frame.
I want to be able to do what I do in R - desiderata:
But in C++ - ipsa:
It does this (unlike R in C++, indexing begins from 0)
Here's how...