Skip to content
Prev 303468 / 398503 Next

hidden for() loop subsetting a matrix?

On Wed, Aug 15, 2012 at 5:32 AM, Federico Calboli
<f.calboli at imperial.ac.uk> wrote:
Canonically, see

$(R_HOME)/src/main/subset.c

lines 159ff and

$(R_HOME)/src/main/subscript.c

lines 316ff.

More directly, R does something akin to arrayInd() but at the C level
-- so yes, a for loop, but a good one ;-) -- and then regular
subsetting.

Cheers,
Michael