Re: [R] if one of 4 conditions is not satisfied

2008-07-01 Thread Peng Jiang
use c() to make your condition a vector, try to use all() to return a logical value for the entire condition vector . On 2008-7-1, at 下午8:40, mysimbaa wrote: I'm trying to do realize the following: I have 4 condtions. If all conditions are satisfied I will paste("PASS") If any of these is not

Re: [R] if one of 4 conditions is not satisfied

2008-07-01 Thread mysimbaa
Thank you very much for your precise help. I will try to implement this tomorrow. It looks like the best solution which could be done. Greetings, Adel Tekari Marc Schwartz wrote: > > on 07/01/2008 07:40 AM mysimbaa wrote: >> I'm trying to do realize the following: >> I have 4 condtions. >> I

Re: [R] if one of 4 conditions is not satisfied

2008-07-01 Thread Marc Schwartz
on 07/01/2008 07:40 AM mysimbaa wrote: I'm trying to do realize the following: I have 4 condtions. If all conditions are satisfied I will paste("PASS") If any of these is not satisfied I will paste("FAIL"). But I have to paste the corresponding failure. ifelse is a good solution but for a 2 cond

[R] if one of 4 conditions is not satisfied

2008-07-01 Thread mysimbaa
I'm trying to do realize the following: I have 4 condtions. If all conditions are satisfied I will paste("PASS") If any of these is not satisfied I will paste("FAIL"). But I have to paste the corresponding failure. ifelse is a good solution but for a 2 conditions. Maybe switch or something like t