On Wed, Feb 26 2014, A.J. Rossini <
blind...@gmail.com> wrote:
> Dear all -
>
> Here's a quick summary of lisp-stat related activities.
>
> 1. thinking about modelframes. So the reason I like R so much is that
> dataframes and model specifications make statistical modeling and analysis
> so "obvious and clear". The reason I am less than satisfied is that
> dataframes and R's models are so 1980...
I am working on a project now in R (basically because of Rstan, I have
some CL interface but there is a deadline and I don't have time to
fiddle with it). On the one hand data.frames are nice, but they have
painful limitations. For me, the most important one stems from R's
inability to have vectors of vectors (except a list of vectors, but
data.frame won't accept that). So I had to write a whole suite of
functions to work with posterior simulations in Rstan (which are lists
of arrays, not lists of vectors).
My ideal data.frame in CL would be a basically a sequence of name-column
pairs. A column would have a type, which would guarantee that all
elements are subtype of that. This could default to T, but some types
would get special treatment: eg (simple-array x n) would be stored in a
`(simple-array x ,(1+ n)) etc.
I have something usable (which does not implement the above
functionality yet) at
https://github.com/tpapp/cl-data-frame . Examples
are in the unit tests.
Best,
Tamas