http://www.jsoftware.com/jwiki/Essays/Attribute-Value_Processing

0. There is a flaw both in my previous sol'n and in Ken's 
original example:  Excluding the header row, there should 
be one row in the result table for each line in the argument.  
That is, if the attributes of interest are  <;._1 ' att0 att1 att2'  
and the lines are:

y=: 0 : 0
att0=4010&att7=2457&att2=439
att3=902&att2=413&att5=4262&att4=4967
att5=4040&att1=465

att4=2733
att3=2397&att2=1104&att6=2625
)

In the result table rows 3 and 4 should be boxed empties:
row 3 because line 3 is empty and row 4 because it 
does not contain att0 or att1 or att2.

1. The logic simplifies on realizing that if you cut on
trailing LF and = and & , and empty boxes are removed,
the result is a boxed vector of   att value att value ...





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

Reply via email to