search for: calcmess

Displaying 1 result from an estimated 1 matches for "calcmess".

Did you mean: alcmiss
2012 Dec 11
1
Rprof causing R to crash
...just records the time works in about 6 seconds the second part causes RGui to immediately close with no error or warning. Any advice on how to get Rprof to work or how to speed up this code would be greatly appreciated. I'm using Windows 7 (which might be my problem) and R version 2.15.0. CalcMESS<-function(tiff.entry,pred.vect){ f<-sum(pred.vect<tiff.entry)/length(pred.vect)*100 if(is.na(f)) return(NA) if(f==0) return((tiff.entry-min(pred.vect))/(max(pred.vect)-min(pred.vect))*100) if(0<f & f<=50) return(2*f)...