Skip to content
Prev 75778 / 398502 Next

matrix indexing

Hi,

you might not consider this more elegant, but how about this

x[-apply(ind, 1, function(i) (i[1]-1)*nrow(x) + i[2])]

Ben
On 8/18/05, toka tokas <tokkass at yahoo.com> wrote: