[R] Optimising code

Crispin Miller CMiller at PICR.man.ac.uk
Tue Oct 7 10:56:37 CEST 2003


Hi,
Does anyone have any advice on speeding up R functions (short of re-implementing them in C :-) )?

I have a function that applies a wilcoxon test to 12 sets of about a quarter of a million pairs (and takes about 3 hours). I've replaced the inner loop I had originally with a function call via mapply, and also considered different approximations  of the wilcoxon, rather than that which is implemented in wilcox.test, but that makes little difference 9and if anything slows things down :-).

Cheers,
Crispin
 
--------------------------------------------------------

 
This email is confidential and intended solely for the use o...{{dropped}}




More information about the R-help mailing list