[R] variables
forkusam
forkusam at yahoo.com
Tue Sep 30 23:38:54 CEST 2003
Hi,
can someone please help me.
I will give a simple example of my problem.
p <- function()
{
i <- 1
sr <- function(){
i<-i+3
i<- sqrt(i)
}
cat(i)
}
This is just an example. My main problem is defining
i like a global variable which I can use in the sub-
and main functions without any complicated switches.
Thanks in advance.
cilver
=====
=====================
Sylvie B. Forkusam
Eppelheimer Str.52/A2-5-2
69115 Heidelberg, Germany
Tel: (0049)-06221/346913
Mobile: 0179-6816276
More information about the R-help
mailing list