[R] "object not found"

About this list Date view Thread view Subject view Author view Attachment view

From: Boryeu Mao (B.Mao@cerep.com)
Date: Thu 28 Mar 2002 - 06:19:51 EST


Message-id: <0957E70F25F7D111974B00A0C9833064AF888F@mayo.cerep.com>

I am not understanding the functions in R:

The following statements work OK if they are invoked in R:

  reg<-polr(act~.,data=mm)
  print(summary(reg))

But if they are enclosed in a function, then calling that function results
in the message:

  Error in eval(expr, envir, enclos) : Object "mm" not found

and no summary is printed for reg. Are there other, more proper, ways to do
these? Where in R's documentation should I be looking?

Thanks for any help/hints.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Wed 16 Oct 2002 - 11:57:10 EST