ad (1):

   t 0}~ (<mm) #&.> 0 { t
+--------+--------+--------+--------+
|20090904|20090903|20090902|20090901|
+--------+--------+--------+--------+
|9345.36 |9282.03 |9306.21 |9492.32 |
+--------+--------+--------+--------+

   (<mm) ((#&.> 0 { ])`0:`])} t
+--------+--------+--------+--------+
|20090904|20090903|20090902|20090901|
+--------+--------+--------+--------+
|9345.36 |9282.03 |9306.21 |9492.32 |
+--------+--------+--------+--------+


R.E. Boss


> -----Oorspronkelijk bericht-----
> Van: [email protected] [mailto:programming-
> [email protected]] Namens PackRat
> Verzonden: dinsdag 8 september 2009 7:33
> Aan: Programming forum
> Onderwerp: Re: [Jprogramming] Stumped using # (copy)
> 
> Ric Sherlock wrote:
> > mm&# &.> 0{t   and   (<mm) # &.> 0{t
> 
> and Raul Miller wrote:
> > mm #L:0 t1
> 
> Both of these approaches create lists of the desired literals.  (I had
> unsuccessfully tried Ric's second 'each' approach but hadn't realized
> that mm had to be boxed.  Raul, I learned something new with your
> approach--thanks!)  However, neither one changes row 0 of table t.  How
> does one get table t to look like this:
> 
> +--------+--------+--------+--------+
> |20090904|20090903|20090902|20090901|
> +--------+--------+--------+--------+
> |9345.36 |9282.03 |9306.21 |9492.32 |
> +--------+--------+--------+--------+
> 
> Is the solution (1) to use 'amend' in some way, or (2) to append the
> revised data list and the remainder of the table following row 0, or
> (3) some other way?  Thanks in advance!
> 
> Harvey
> 
> ----------------------------------------------------------------------
> 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