Skip to content

"object not found"

1 message · Boryeu Mao

#
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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._