[R] Multiple lapply get-around

Manoj - Hachibushu Capital Wanzare at HCJP.com
Mon Aug 30 10:04:10 CEST 2004

I am faced with a situation wherein I have to use multiple lapply's. The
pseudo-code could be approximated to something as below:

For each X from i=1 to n
	For each Y based on j=1 to m 
		For each F from 1 to f
			Do some calculation based on Fij
			Store Xi,Yj	= Fij
		End For F
	End for Y
End for X

Is there anyway to optimize the processing logic further? I *guess*
using the multiple lapply already optimizes the logic a little bit but
is there anything else that could be done (apart from the obvious
solution of writing a c-code)?



More information about the R-help mailing list