[R] Ignore error t.test in a loop
jholtman at gmail.com
Sat Feb 2 13:57:39 CET 2008
for(i in x) try(t.test(...))
On Feb 2, 2008 7:43 AM, My Coyne <mcoyne at boninc.com> wrote:
> I place a t.test in a loop and would like to continue to process the loop
> even when t.test encounter error. How do I do that? For example, in one
> iteration, the data is completely constant and t.test gives error, the
> entire program terminates. I would like to write the information out to a
> file, and the loop should continue.
> My D. Coyne
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
+1 513 646 9390
What is the problem you are trying to solve?
More information about the R-help