Did you try searching the "J phrases"?
eg,
(<<<1){ i.5
0 2 3 4
(<<<1){ i.3 4
0 1 2 3
8 9 10 11
or select with a boolean vector
1 0 1 1 1 # i.5
0 2 3 4
1 0 1 # i.3 4
0 1 2 3
8 9 10 11
insertion may be done by expand then amend, please refer to dictionary on #
eg.
1 1 0 0 1 #^:_1 i.3
0 1 0 0 2
1 1j2 1 # i.3
0 1 0 0 2
PackRat wrote:
My brain must have gone into hibernation or something for the past
couple of hours: no matter how much I've searched the documentation and
the forum archives, I cannot seem to find anything about deleting a row
from an array or inserting a row into an array. I was thinking that,
instead of dropping sequential items from the beginning or end (as with
"drop"), deleting would likely be along the line of a selected list of
one or more items (such as rows) to drop. (I suppose inserting would
be analogous in some manner.) However, try as I might, I couldn't find
anything that would seem to be so simple, maybe even a primitive (and
probably so obvious!)--hence, my frustration with myself. Could some
kind soul gently share how these would be done? 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