> -----Original Message-----
> From: r-help-boun...@r-project.org 
> [mailto:r-help-boun...@r-project.org] On Behalf Of Grzes
> Sent: Tuesday, June 16, 2009 10:51 PM
> To: r-help@r-project.org
> Subject: Re: [R] ifelse(is.na), with function inside
> 
> 
> 2 - is.na(a)  - it's superb! but I need call a function:  wy[i]<-
> ifelse(((is.na(a))), call_fun1(x), call_fun2(x)
> 
> 
> 
Not sure if I understand everything you want to do, but what is wrong with just 
using

 wy <- ifelse(is.na(a), fun1(x), fun2(x))

Hope this is helpful,

Dan

Daniel Nordlund
Bothell, WA USA  

______________________________________________
R-help@r-project.org 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.

Reply via email to