[R] objects and environments

Adrian Dusa dusa.adrian at gmail.com
Wed Aug 9 18:28:58 CEST 2006


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



More information about the R-help mailing list