Re: [R] Continuing on with a loop when there's a failure

2010-07-19 Thread Josh B
;, everything is there (except for y2, which is supposed to fail): results y1 y2y3 [1,] 0.6976063 NA 0.6976063 From: David Winsemius Cc: R Help Sent: Sun, July 18, 2010 9:12:44 PM Subject: Re: [R] Continuing on with a loop when there's a

Re: [R] Continuing on with a loop when there's a failure

2010-07-18 Thread Josh B
_ From: David Winsemius Cc: Peter Konings ; R Help Sent: Sun, July 18, 2010 3:33:07 PM Subject: Re: [R] Continuing on with a loop when there's a failure On Jul 18, 2010, at 4:25 AM, Josh B wrote: > Hello Peter, > > I tried your suggestion, but I was still not able to get i

Re: [R] Continuing on with a loop when there's a failure

2010-07-18 Thread David Winsemius
oly3 <- lrm(x[,3] ~ pol(x1, 3) + pol(x2, 3), data=x) >anova(mod.poly3)[1,3] [1] 0.6976063 Any ideas? From: David Winsemius To: Josh B Cc: Peter Konings ; R Help > Sent: Sun, July 18, 2010 3:33:07 PM Subject: Re: [R] Continuing on with a loop when there's a failure On Jul 18,

Re: [R] Continuing on with a loop when there's a failure

2010-07-18 Thread David Winsemius
6976063 NA NA ...and here's the output: results y1 y2 y3 [1,] NA NA NA The results matrix is empty! ________ From: Peter Konings Sent: Tue, July 13, 2010 5:45:17 PM Subject: Re: [R] Continuing on with a loop when there's a failure Hi Josh, Test t

Re: [R] Continuing on with a loop when there's a failure

2010-07-18 Thread Josh B
through the loop should have succeeded and left numeric output in the matrix called "results", but it did not). To: Peter Konings Cc: R Help Sent: Sun, July 18, 2010 12:25:42 PM Subject: Re: [R] Continuing on with a loop when there's a failure

Re: [R] Continuing on with a loop when there's a failure

2010-07-18 Thread Josh B
#x27;s the output: > results y1 y2 y3 [1,] NA NA NA The results matrix is empty! ________ From: Peter Konings Sent: Tue, July 13, 2010 5:45:17 PM Subject: Re: [R] Continuing on with a loop when there's a failure Hi Josh, Test the class of the resulting object. If it is 'try-error&#x

Re: [R] Continuing on with a loop when there's a failure

2010-07-13 Thread David Winsemius
f/then statement? From: David Winsemius To: David Winsemius Cc: Josh B ; R Help Sent: Tue, July 13, 2010 9:09:04 AM Subject: Re: [R] Continuing on with a loop when there's a failure On Jul 13, 2010, at 9:04 AM, David Winsemius wrote: > > On Jul 13, 2010, at 8:47 AM, Josh B

Re: [R] Continuing on with a loop when there's a failure

2010-07-13 Thread David Winsemius
yCatch, and the help files for them are pretty bad, in my humble opinion. >> >> I should clarify that I actually don't care about the failed runs per se. I just want R to keep going in spite of them and give me my results matrix. >> >> From: David Winsemius >>

Re: [R] Continuing on with a loop when there's a failure

2010-07-13 Thread Josh B
for them are pretty bad, in my humble opinion. >> >> I should clarify that I actually don't care about the failed runs per se. I >>just want R to keep going in spite of them and give me my results matrix. >> >> From: David Winsemius >> Cc: R Help >

Re: [R] Continuing on with a loop when there's a failure

2010-07-13 Thread Josh B
st want R to keep going in spite of them and give me my results matrix. From: David Winsemius Cc: R Help Sent: Mon, July 12, 2010 8:09:03 PM Subject: Re: [R] Continuing on with a loop when there's a failure On Jul 12, 2010, at 6:18 PM, Josh B wrote: >

Re: [R] Continuing on with a loop when there's a failure

2010-07-13 Thread David Winsemius
files for them are pretty bad, in my humble opinion. I should clarify that I actually don't care about the failed runs per se. I just want R to keep going in spite of them and give me my results matrix. From: David Winsemius To: Josh B Cc: R Help Sent: Mon, July 12, 2010 8:09:03 PM Sub

Re: [R] Continuing on with a loop when there's a failure

2010-07-13 Thread David Winsemius
to keep going in spite of them and give me my results matrix. From: David Winsemius To: Josh B Cc: R Help Sent: Mon, July 12, 2010 8:09:03 PM Subject: Re: [R] Continuing on with a loop when there's a failure On Jul 12, 2010, at 6:18 PM, Josh B wrote: > Hi R sages, > &g

Re: [R] Continuing on with a loop when there's a failure

2010-07-12 Thread David Winsemius
On Jul 12, 2010, at 6:18 PM, Josh B wrote: Hi R sages, Here is my latest problem. Consider the following toy example: x <- read.table(textConnection("y1 y2 y3 x1 x2 indv.1 bagels donuts bagels 4 6 indv.2 donuts donuts donuts 5 1 indv.3 donuts donuts donuts 1 10 indv.4 donuts donuts donuts 10

[R] Continuing on with a loop when there's a failure

2010-07-12 Thread Josh B
Hi R sages, Here is my latest problem. Consider the following toy example: x <- read.table(textConnection("y1 y2 y3 x1 x2 indv.1 bagels donuts bagels 4 6 indv.2 donuts donuts donuts 5 1 indv.3 donuts donuts donuts 1 10 indv.4 donuts donuts donuts 10 9 indv.5 bagels donuts bagels 0 2 indv.6 bagels