[R] Scoping

Goran Brostrom gb at stat.umu.se
Fri Nov 20 20:59:31 CET 1998


On Fri, 20 Nov 1998, Thomas Lumley wrote:

> On Fri, 20 Nov 1998, Goran Brostrom wrote:
> 
> > I must admit that I don't fully appreciate the scoping rules in R.
> > For instance:
> > 
> > myfunc <-function(tt, event, x)
> >    {
> >      cat(tt, "\n")
> >      coxph(Surv(tt, event) ~ x)
> >    }
> > 
> 
> 
> This seems to be a bug in coxph, I'm already looking into it. 

Thank you for the clarification. Does this mean that it is impossible
to call coxph from within a function?
--------------------------------------------------------------
 Göran Broström
 Department of Statistics              tel: +46 90 786-5223
 Umeå University                       fax: +46 90 786-6614
 S-90187 Umeå, Sweden               e-mail:  gb at stat.umu.se

 http://www.stat.umu.se/~gb          ftp://capa.stat.umu.se
--------------------------------------------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list