Re: [R] the ifelse function

From: jim holtman <jholtman_at_gmail.com>
Date: Sat, 05 May 2007 18:04:30 -0400

Can you proovide the example you are talking about. Here is what I got:

> ifelse(NA,1,2)
[1] NA

On 5/5/07, Jennifer Dillon <jdillon_at_hsph.harvard.edu> wrote:
> Hi Everyone,
>
> I think I found a problem with the ifelse function: If the condition
> argument is NA, it treats it as true. Anyone agree or disagree with this?
>
> Jen
>
> --
> Jennifer Dillon
> Doctoral Student
> Harvard Biostatistics
> Room 414B, Building 1
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

______________________________________________
R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Sat 05 May 2007 - 22:07:57 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 05 May 2007 - 23:31:38 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.