Re: [R] how to make the dynamically creted string work inside if as a condition

2009-06-06 Thread Duncan Murdoch
Moumita Das wrote: Hi, How to make an if condition work, if the condition inside if() is created dynamically ,and that is a string .If i type teh dynamically created string the if works fine but when dynamically created,it is a string and going inside the if() ,an error is thrown saying : rgume

[R] how to make the dynamically creted string work inside if as a condition

2009-06-06 Thread Moumita Das
Hi, How to make an if condition work, if the condition inside if() is created dynamically ,and that is a string .If i type teh dynamically created string the if works fine but when dynamically created,it is a string and going inside the if() ,an error is thrown saying : rgument is not logical ..I