tab=. ?1233 9$0           NB. 1233 x 9 table of numbers
   rix=. (5?1233),&.>5?9     NB. Some random indexes
   tab=. _ rix}tab           NB. Insert _s
   +/tab
_ 598.92074 _ 617.39331 _ _ 627.08038 624.41445 _

   tab i."(1 0)&.|: _        NB. Find first occurrence of _ in each column
133 1233 42 1233 903 752 1233 1233 1219


On 8/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Has to happen at 5:30pm on a Friday!
>
> I have a 9 column 1233 rows table of numbers. For some reason
>
>      +/ tab
>
> gives me
>
>      _ _ _ _ 1232 _ _ _ _
>
> which is odd because the middle column are all 1 i.e. one row seems to be
> missing. Ditto for the rest of the numbers.
>
>      +/ (40{.tab)
>
> gives me something sane
>
>      40.1521 39.9998 41.8901 41.9799 40 35.4849 17.0773 18.6409 17.288
>
> but
>
>      +/ (42{.tab)
>
> doesn't
>      _ _ _ _ 41 _ _ _ _
>
> Any ideas on this oddity.
>
> Thanks
>
> tee
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to