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

2019-03-10 Thread PIKAL Petr
hich to select only non NA elements. Cheers Petr > -Original Message- > From: R-help On Behalf Of David Goldsmith > Sent: Sunday, March 10, 2019 7:16 AM > Cc: r-help@r-project.org > Subject: Re: [R] [FORGED] Q re: logical indexing with is.na > > Thanks, all. I had

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

2019-03-10 Thread Duncan Murdoch
On 10/03/2019 1:15 a.m., David Goldsmith wrote: Thanks, all. I had read about recycling, but I guess I didn't fully appreciate all the "weirdness" it might produce. :/ With this explained, I'm going to ask a follow-up, which is only contextually related: the impetus for this discovery was check

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

2019-03-10 Thread David Goldsmith
Thanks, all. I had read about recycling, but I guess I didn't fully appreciate all the "weirdness" it might produce. :/ With this explained, I'm going to ask a follow-up, which is only contextually related: the impetus for this discovery was checking "corner cases" to determine if all(x[!is.na(x)

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

2019-03-09 Thread Rolf Turner
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

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

2019-03-09 Thread Jeff Newmiller
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/sl

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

2019-03-09 Thread Rolf Turner
On 3/10/19 2:36 PM, David Goldsmith wrote: 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, an