Skip to content
Prev 55325 / 63424 Next

Subsetting the "ROW"s of an object

The C code for subsetting doesn't need to recycle a logical subscript.
It only needs to walk on it and start again at the beginning of the
vector when it reaches the end. Not exactly the same as detecting the
"take everything along that dimension" situation though.
x[TRUE, TRUE, TRUE] triggers the full subsetting machinery when x[]
and x[ , , ] could (and should) easily avoid it.

H.
On 06/08/2018 01:49 PM, Hadley Wickham wrote: