Re: [R] objects and environments

From: Adrian Dusa <dusa.adrian_at_gmail.com>
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

-- 
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.
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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.