On 1/6/2012 10:07 PM, Giuseppe Paleologo wrote:
My applications are mostly in Statistics/Data Analysis. Rather than dealing with a single, massive data set, I often have many medium-sized ones. I find myself applying in R or Python large amounts of maps, reduces, filters and other list manipulations that I believe Racket can perform more expressively. As an example of a building block of what I'd like to build or reuse, consider the R data.frame: an array that can be sliced by rows/ columns using logical indices, numerical indices, or names for rows and columns. Moreover, the rows and columns could be accessed as individual lists. I wonder what's the best way to do this in Racket. I am not looking for a cookbook, but something that teaches the essentials, with examples of non-standard data strucures.
I wrote a data structure for this which you are welcome to reuse. It's called table.
https://github.com/gmarceau/racket-utils/blob/master/table.rkt ____________________ Racket Users list: http://lists.racket-lang.org/users