[R] multi-dimensional hash

2003-10-02 Thread Arne.Muller
Hello, I was wondering what's the best data structure in R for a multi-dimensional lookup table, and how to implement it. I've several categories say A, B, C ... and within each of these categories there are other categories such as a, b, c, ... . There can be up to 5 dimensions. The actual value

Re: [R] multi-dimensional hash

2003-10-02 Thread Thomas W Blackwell
Arne - In the past, I've used a data frame for the lookup table and the and of individual logical vectors to select rows from it. Here's a simplified version of the selector function I wrote. My mail editor does not balance parentheses, so I don't guarantee that this version is syntactically