On Wednesday 09 August 2006 19:14, Gabor Grothendieck wrote: > Dmitris has already provided the solution but just throught I would' > mention that your third alternative can be written: > > apply(mymatrix, 1, fun2, bb = bb) > > (assuming fun2 has arguments idx and bb) which is not > nearly so ugly so you might reconsider whether its ok > for you to just pass bb.
Aah-aaaaaaa....!! :) So that's the way to do it... I don't know how many times I read the help from apply and I missed it every time. Well, I learned many things today, I feel much better now :) Thank you, Adrian -- Adrian Dusa Romanian Social Data Archive 1, Schitu Magureanu Bd 050025 Bucharest sector 5 Romania Tel./Fax: +40 21 3126618 \ +40 21 3120210 / int.101 ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.