Re: [R] Error message in ifthen else

2008-10-03 Thread Duncan Murdoch
On 03/10/2008 12:40 AM, Jason Lee wrote: Hi Duncan, Mark and all, Thanks for the suggestion. I ve tried the below suggestion. I got this error now Error in `[<-.data.frame`(`*tmp*`, , x, value = NULL) : new columns would leave holes after existing columns Its weird as I try to assign NULL m

Re: [R] Error message in ifthen else

2008-10-02 Thread Jason Lee
Hi Duncan, Mark and all, Thanks for the suggestion. I ve tried the below suggestion. I got this error now Error in `[<-.data.frame`(`*tmp*`, , x, value = NULL) : new columns would leave holes after existing columns Its weird as I try to assign NULL manually and its not complaining anything. W

Re: [R] Error message in ifthen else

2008-10-02 Thread Duncan Murdoch
On 02/10/2008 10:07 PM, Jason Lee wrote: Hi, I came across the below error when I try to do ifelse condition:- Error in "[<-"(`*tmp*`, test, value = rep(yes, length = length(ans))[test]) : incompatible types What I am trying to accomplish is :- for(x in 1:ncol(filterpred)){ sumno<-su