[R] Re: [S] [R/S] question re solution

Manoj - Hachibushu Capital Wanzare at HCJP.com
Thu Sep 2 06:26:58 CEST 2004


> Someone else mentioned Venables and Ripley (2000) S 
> Programming (Springer).  Please see this or some other discussion of
the 
> "..." argument.

The "Introduction to R" (from Cran website) also talks about it. See pg
49 - section 10.4 (was just reading this the other day).

Cheers

Manoj


-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Spencer Graves
Sent: Thursday, September 02, 2004 11:53 AM
To: Erin Hodgess
Cc: R-help; s-news at wubios.wustl.edu
Subject: [R] Re: [S] [R/S] question re solution

<see below>

Erin Hodgess wrote:

>Dear R and S People:
>
>First, thank you to so many people for your help to my problem.
>
>Here is the solution:
>
>a <- 0.5*(outer(1:n3,1:n3,function(x,y,n2.){n2. - pmax(x,y)},n2.=n2))
>
>I have one final pesky question, please:
>During my experiments, I tried the following:
>
>a <- 0.5*(outer(1:n3,1:n3,function(x,y,n2.=n2){n2. - pmax(x,y)}))
>  
>
      In S-Plus, the function "outer" can't find "n2".  In the form

outer(1:n3,1:n3,function(x,y,n2.=n2){n2. - pmax(x,y)}), n2.=n2)


      the value of "n2" is passed to "n2." as part of the "..." 
argument.  Someone else mentioned Venables and Ripley (2000) S 
Programming (Springer).  Please see this or some other discussion of the

"..." argument. 

      hope this helps. 
      spencer graves

>Why doesn't this work please?
>
>thank you!
>
>Sincerely,
>Erin Hodgess
>Associate Professor
>Department of Computer and Mathematical Sciences
>University of Houston - Downtown
>mailto: hodgess at gator.uhd.edu
>--------------------------------------------------------------------
>This message was distributed by s-news at lists.biostat.wustl.edu.  To
>...(s-news.. clipped)...

>  
>

-- 
Spencer Graves, PhD, Senior Development Engineer
O:  (408)938-4420;  mobile:  (408)655-4567

______________________________________________
R-help at 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




More information about the R-help mailing list