As the others have replied, "key" is the one. If you look at the definition of key in the dictionary, http://www.jsoftware.com/help/dictionary/d421.htm x u/.y ↔ (=x) u...@# y you'll see how much it resembles the phrase you were using.
Key has been the target of quite a bit of special code. http://www.jsoftware.com/help/dictionary/special.htm ----- Original Message ----- From: John Randall <rand...@andromeda.rutgers.edu> Date: Wednesday, September 22, 2010 10:43 Subject: [Jprogramming] Classification problem To: programming@jsoftware.com > I'm looking for help with a simple programming problem. > > Suppose my data consists of integers, and I have a > classification to a > small number of values. > > For example > > f=:1+* > data=:_3 1 0 1 _1 0 _10 _2 _4 6 > > f data > 0 2 1 2 0 1 0 0 0 2 > > I then want to organize the data into boxes based on these > values, for > example > > +---------------+---+-----+ > |_3 _1 _10 _2 _4|0 0|1 1 6| > +---------------+---+-----+ > > I got this using > > (0 1 2=/f data) <@# data > > Is there a simpler or better way? ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm