Re: [R] lm error and how to sidestep an error occured in for loop to keep it going without being interrupted

2007-09-28 Thread Moshe Olshansky
For an answer to your question 2. look at help(try) and help(tryCatch). --- Yong Wang [EMAIL PROTECTED] wrote: Dear Rlist I am runing a for loop on a large dataset to do exploring investigation. Code embedded in the loop include the lm routine. Unfortunately, for some specification of

[R] lm error and how to sidestep an error occured in for loop to keep it going without being interrupted

2007-09-27 Thread Yong Wang
Dear Rlist I am runing a for loop on a large dataset to do exploring investigation. Code embedded in the loop include the lm routine. Unfortunately, for some specification of dependent variable, the loop will be interrupted by error as below: Error in `contrasts-`(`*tmp*`, value =