> From: PackRat
> 
> t1=: '2009-09-04';'2009-09-03';'2009-09-02';'2009-09-01'
> t2=: '9345.36';'9282.03';'9306.21';'9492.32'
> t=: t1 ,: t2
> 
> +----------+----------+----------+----------+
> |2009-09-04|2009-09-03|2009-09-02|2009-09-01|
> +----------+----------+----------+----------+
> |9345.36   |9282.03   |9306.21   |9492.32   |
> +----------+----------+----------+----------+
> 
> mm=. 1 1 1 1 0 1 1 0 1 1    NB. yyyy-mm-dd --> yyyymmdd
> 
> I can't figure out how to make # apply to all the values in the row at
> once 

   mm&# &.> 0{t
+--------+--------+--------+--------+
|20090904|20090903|20090902|20090901|
+--------+--------+--------+--------+
   (<mm) # &.> 0{t
+--------+--------+--------+--------+
|20090904|20090903|20090902|20090901|
+--------+--------+--------+--------+

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

Reply via email to