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

2019-03-11 Thread Izmirlian, Grant (NIH/NCI) [E] via R-help
From: David Goldsmith Sent: Saturday, March 9, 2019 8:36 PM To: r-help@r-project.org Subject: [R] Q re: logical indexing with is.na Hi! Newbie (self-)learning R using P. Dalgaard's "Intro Stats w/ R"; not new to statistics (have had grad-level courses and

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

2019-03-09 Thread Richard M. Heiberger
>From ?Arithmetic the elements of shorter vectors are recycled as necessary (with a ‘warning’ when they are recycled only _fractionally_). > tmp <- !is.na(y[1:3]) > tmp [1] TRUE TRUE FALSE > c(tmp, tmp) [1] TRUE TRUE FALSE TRUE TRUE FALSE > c(tmp, tmp)[1:4] [1] TRUE TRUE FALSE T

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

2019-03-09 Thread David Goldsmith
Hi! Newbie (self-)learning R using P. Dalgaard's "Intro Stats w/ R"; not new to statistics (have had grad-level courses and work experience in statistics) or vectorized programming syntax (have extensive experience with MatLab, Python/NumPy, and IDL, and even a smidgen--a long time ago--of experie