[R] [FORGED] Q re: logical indexing with is.na

Rolf Turner r@turner @end|ng |rom @uck|@nd@@c@nz
Sun Mar 10 06:56:31 CET 2019


On 3/10/19 6:07 PM, Jeff Newmiller wrote:

> Regarding the mention of logical indexing, under ?Extract I see:
> 
> For [-indexing only: i, j, ... can be logical vectors, indicating
> elements/slices to select. Such vectors are recycled if necessary to
> match the corresponding extent. i, j, ... can also be negative
> integers, indicating elements/slices to leave out of the selection.

Dang!  It was staring me in the face all the time, and I didn't see it!
Grrrrrr.

Thanks Jeff.

cheers,

Rolf


-- 
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276



More information about the R-help mailing list