[R] mapply to lapply

Alaios alaios at yahoo.com
Mon Apr 18 10:29:12 CEST 2011


Dear all,

I would like to ask your help concerning 
converting a mapply function to lapply. The reason is that I would like to use 
mclapply which requires lapply syntax.

The command I would like to convert is:
F2[i+1,j+1]<-sum(mapply(Fwithcellvalue,i=i,j=j,a=cells[,2],b=cells[,4],c=cells[,1],d=cells[,3],e=cells[,5]))

Could you please help me understand how I should change it?


Best Regards
Alex



More information about the R-help mailing list