Hello again!

I want to match 2 tables to have the same length, but I want to save
the overage.  Here is the code that didn't work because J does not
seem to allow variables in place of numbers:

[leny1 is the length of the DEG table and lenx1 is the length of the
table to match DEG with]

xydiff=. leny1 - lenx1  NB. length leny1 must always be longer than lenx1

DEG2=. _xydiff {. DEG  NB. save unmatched tail portion of DEG

DEG=. _xydiff }. DEG  NB. delete unmatched tail portion of DEG

Since it seems (and I may be mistaken in some way) that J cannot
handle the value of a noun variable, how can I accomplish what I'm
trying to do in the above code?

Thanks in advance for any help with this!  I hope this is not
something ultra obvious that I've overlooked. ;-)

Harvey
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to