y3
[1,] 0.6976063 NA 0.6976063
From: David Winsemius dwinsem...@comcast.net
Cc: R Help r-help@r-project.org
Sent: Sun, July 18, 2010 9:12:44 PM
Subject: Re: [R] Continuing on with a loop when there's a failure
On Jul 18, 2010, at 12:28 PM, Josh B wrote
]]
From: Peter Konings peter.l.e.koni...@gmail.com
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' fill your result
with NA or do some other error handling.
result - try
Konings peter.l.e.koni...@gmail.com
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' fill your result
with NA or do some other error handling.
result - try(somemodel)
if(class
The results matrix is empty!
From: Peter Konings peter.l.e.koni...@gmail.com
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' fill
your result
y1 y2 y3
[1,] NA NA NA
The results matrix is empty!
From: Peter Konings peter.l.e.koni...@gmail.com
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
...@comcast.net
Cc: Peter Konings peter.l.e.koni...@gmail.com; R Help r-help@r-project.org
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
: David Winsemius dwinsem...@comcast.net
To: Josh B josh...@yahoo.com
Cc: R Help r-help@r-project.org
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,
Here is my latest problem. Consider
] Continuing on with a loop when there's a failure
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
.
From: David Winsemius dwinsem...@comcast.net
Cc: R Help r-help@r-project.org
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,
Here is my latest problem
: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 wrote:
Thanks again, David.
[[elided Yahoo spam]]
(BTW, it did work.)
Here's what I'm trying now:
for (i in 1:2
-project.org
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 wrote:
Thanks again, David.
...but, alas, I still can't get it work!
(BTW, it did work.)
Here's
Cc: Josh B josh...@yahoo.com; R Help r-help@r-project.org
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 wrote:
Thanks again, David.
...but, alas, I
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 9
13 matches
Mail list logo