[R] Scoping bug!?
    Marcus Eger 
    marcus.eger at physik.uni-marburg.de
       
    Thu Dec 17 13:34:58 CET 1998
    
    
  
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´m 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 at 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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
    
    
More information about the R-help
mailing list