[R] help - the condition has length 1 and only the first element will be used

2011-02-10 Thread Bodnar Laszlo EB_HU
Hello there, I don't know if I'm addressing my question to the right e-mail address, I hope I do. Actually I have a little problem concerning writing a code in R. I try to briefly sum up my problem. As you can see below, I created the functions Equation1 and Equation2 with some conditions.

[R] help - the condition has length 1 and only the first element will be used

2011-02-10 Thread Bodnar Laszlo EB_HU
Hello there, I don't know if I'm addressing my question to the right e-mail address, I hope I do. Actually I have a little problem concerning writing a code in R. I try to briefly sum up my problem. As you can see below, I created the functions Equation1 and Equation2 with some conditions.

[R] help - the condition has length 1 and only the first element will be used

2011-02-10 Thread Bodnar Laszlo EB_HU
Hi again! I just wanted to say that during typing my message before I mistyped certain of characters and I was just afraid that it might spoil the understanding of my message. So I corrected the characters and now I'm sending you this corrected letter again. Terribly sorry for my mistake.

Re: [R] help - the condition has length 1 and only the first element will be used

2011-02-10 Thread Jonathan P Daily
The issue here is that if only accepts a single True/False argument. Try these functions: ?ifelse ?all ?any -- Jonathan P. Daily Technician - USGS Leetown Science Center 11649 Leetown Road Kearneysville WV, 25430 (304) 724-4480 Is the room still a room when its