Date: Thu, 17 Dec 1998 13:34:58 +0100
From: Marcus Eger <marcus.eger@physik.uni-marburg.de>
To: "r-help@stat.math.ethz.ch" <r-help@stat.math.ethz.ch>
Subject: [R] Scoping bug!?
Hello - any suggestions?!
"fun" <- function (a1,a2,a3) {
...
x<-rnorm(50)
a<-locfit(~x)
...
}
does not work, (Error: Object "x" not found) but
x<<-as.matrix(mm[Pc+1])
instead, does!
When typing the two lines directly at the prompt - everything is ok.
I=B4m using R 63.0 on i586 with Linux, SUSE 5.2.
Thanks for any help -
Marcus
-- +------------------------------------------ | Marcus Eger | Philipps Universitaet Marburg | Fachbereich Physik AG Neurophysik | Renthof 7 | 35032 Marburg | Tel. +49 6421 284169 | Fax +49 6421 287034 +------------------------------------------ | E-Mail: marcus.eger@physik.uni-marburg.de +------------------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._