Skip to content
Prev 336435 / 398513 Next

Conditional recoding for purpose of imputing

... Well, the syntax is corrected, but it doesn't solve her problem:
ifelse() leaves NA's as NA's.

"But:, you ask, "what should NA's become?"  As the OP does not tell
us,  we are left to read tea leaves: only the Shadow knows...*

Cheers,
Bert

* The Shadow also knows about ?is.na, which the OP should also
probably read about. In fact, she would do well to read the
"Introduction to R" tutorial -- or perhaps another of her choosing on
the web -- where she would probably learn enough so that she wouldn't
have to send posts like this in the first place!

Bert Gunter
Genentech Nonclinical Biostatistics
(650) 467-7374

"Data is not information. Information is not knowledge. And knowledge
is certainly not wisdom."
H. Gilbert Welch
On Sun, Feb 9, 2014 at 8:52 PM, David Winsemius <dwinsemius at comcast.net> wrote: