On Mon, Sep 7, 2009 at 5:56 PM, PackRat<[email protected]> wrote:
> t1=: '2009-09-04';'2009-09-03';'2009-09-02';'2009-09-01'
...
> mm=. 1 1 1 1 0 1 1 0 1 1    NB. yyyy-mm-dd --> yyyymmdd
>
...
>
> 0{0{t  is  '2009-09-04'   and   mm # > 0{0{t  is  '20090904'
> 1{0{t  is  '2009-09-03'   and   mm # > 1{0{t  is  '20090903'
> and so on.
>
> I can't figure out how to make # apply to all the values in the row at
> once (I can't even figure out how to do it with a 'for' loop)--no
> matter what I've tried, I keep getting (length, syntax, and limit)
> error messages.  I'd appreciate any help that y'all can offer.  Thanks
> in advance!

I would use
   mm #L:0 t1

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

Reply via email to