yes, transpose is necessary...
|: <"1@>

next problem:
+---------------------------------------+ 
|2005|K     |10100|     |6010|F|13677.79|
+----+------+-----+-----+----+-+--------+ 
|2005|K     |10100|     |6025|F|   _2834|
+----+------+-----+-----+----+-+--------+ 
|2005|K     |10100|     |6040|F|  _26.59|
+----+------+-----+-----+----+-+--------+ 
|2005|K     |10100|     |6077|F|       0|
+---------------------------------------+


the solution...
2005^K^10100^^6010^F^13677.79
2005^K^10100^^6025^F^-2834
2005^K^10100^^6040^F^-26.59
2005^K^10100^^6077^F^0


problem 1)
BoxedToDelimited=: 3 : 0
        TAB boxedToDelimited y.
:
m=: ((0 _1+$y.)$<x.),.<CRLF                     NB. Table of delimiters and
EOR for each cell of y.
f=: ;@:(,&.>)                                   NB. Concatenate to each
cell, and raze result
y. f m
)

Data =. }: ~. |: <"1@> dbfread''
'^' BoxedToDelimited Data
|domain error: f
|   y.     f m

what is wrong?



problem 2)
_2834  ==>  -2834


thanks for help......



> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im Auftrag von bill lam
> Gesendet: Sonntag, 30. April 2006 15:57
> An: Programming forum
> Betreff: Re: [Jprogramming] array transformation
> 
> does it need to transpose the result?
> |:@:(<"1@>)
> 
> Henry Rich wrote:
> > Try
> > 
> > <"1@>
> > 
> 
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 

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

Reply via email to