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
>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
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
3 matches
Mail list logo