Displaying 2 results from an estimated 2 matches for "resultdt".
Did you mean:
resultat
2006 May 05
1
How to a handle an error in a loop
...th. I think only one step!
I am using dgc.genetics to run a TDT test on thousands of genetic loci. I
have learnt (through the help of others on this mailing list) to send the
complex output to useful data frames which in turn allow me to look at the
big picture and screen the thousands of loci.
Resultdt<-lapply(PGWide[,240:290], tdt)
the above would do 51 loci at a time. I want to do 6000 all in one shot.
the only problem is that about once every 100 variables in PGWide there is a
locus whose data trips up the tdt function. And when it does, it short
circuits the entire loop. Nothing gets wri...
2006 May 07
0
How to a handle an error in a loop [Broadcast]
This ought to work:
resultdt <- 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$5bc4fea...