[R] Use apply on a function with multiple argument including a matrix ?

2011-05-27 Thread sunelav
in this case I don't know how to put M as another argument for the function. Thank you very much for your help, Cheers, Sunelav. To make things clearer; this is the loop I would like to eliminate # the function f=function(M,p1,p2,p3) # A matrix and 3 numeric parameters { return(SM) } #

Re: [R] Use apply on a function with multiple argument including a matrix ?

2011-05-27 Thread sunelav
for loops, which I guess is what you call "vectorisation". However I have no idea about what you mean by the "proper use of indexing". Could you please give me more details about that ? Thanks again for your response, Sunelav -- View this message in context: http://r.