I saw some (bad) code somewhere which turned out to call a function which executed mymatrix[TRUE] along the way. It turns out, at least in the samples I tested, t
When used as indices, logical vectors are recycled to match the length of the vector. For example, mymatrix[c(TRUE, FALSE)] would give you every other element.