On Wed, Feb 4, 2009 at 4:23 AM, adam dunne <[email protected]> wrote:
> Given a square table a=.i.4 4 is it possible, in one line, to replace
>
> Column 1 with row 2, using a gerund or directly. I seem to get rank errors.

Row 2:

   2{a=.i.4 4
8 9 10 11

Replace column 1 with row 2:
   (]`1:`[}"_1 (2&{)) a=.i.4 4
 0  8  2  3
 4  9  6  7
 8 10 10 11
12 11 14 15

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

Reply via email to