Displaying 1 result from an estimated 1 matches for "5bc4fea9".
2006 May 07
0
How to a handle an error in a loop [Broadcast]
...esultdt <- lapply(PGWide[, 240:389], function(x, ...) try(tdt(x, ...)))
You can then check the class of each component to see which one failed.
Andy
From: Farrel Buchinsky
>
> "Berton Gunter" <gunter.berton at gene.com> wrote in message
> news:008601c67097$de1b46e0$5bc4fea9 at gne.windows.gene.com...
> > ?try
> >
> > as in
> >
> > result<- try (some R expression...)
> > if (inherits(result,'try-error')) ...do something else
> ...do something
> > else
>
> No heaven on earth yet.
>
> how would I inc...