Re: [R] objects and environments

From: Adrian Dusa <>
Date: Thu 10 Aug 2006 - 02:28:58 EST

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 Dusa
Romanian Social Data Archive
1, Schitu Magureanu Bd
050025 Bucharest sector 5
Tel./Fax: +40 21 3126618 \
          +40 21 3120210 / int.101

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Thu Aug 10 02:29:28 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 10 Aug 2006 - 04:20:01 EST.

Mailing list information is available at Please read the posting guide before posting to the list.