[R] Multiple calls to a function

Keith Jones keithlj at suddenlink.net
Wed Oct 31 20:04:21 CET 2007


Hi y'all,

I wrote two functions; 1) sparsely samples a point pattern and 
calculates the Clark Evans R value and Z score, 2) calls the first 
function multiple times using a for loop and generates a histogram. 
I would like to know if there is a more efficient way of calling the 
first function other than using the for loop.  Any ideas?

cel<-data.frame("R"=0,"RZ"=0,"CV"=0,"PVAL"=0,"INT"=0)
for(i in 1:N) cel[i,]<-cezhpts(dat,np,cv)

Thanks,

Keith Jones



More information about the R-help mailing list