search for: g_mean

Displaying 1 result from an estimated 1 matches for "g_mean".

Did you mean: _mean
2007 Apr 02
2
(Newbie)Basic Basic global vs. local variables
.... Ive done some coding in other languages before, but I somehow cant figure out R's general rules for global and local variables. I have put a simple code below, if anyone can show me what i need to add to make this work, i would greatly appreciate it! #---------------------------------------- g_Means<-numeric() defineSamples<- function() { g_Means<-5 } runit<-function() { defineSamples() g_Means #####<<This returns "numeric(0)", and not "5" } runit() #---------------------------- Basically I can not get the parameter I set from a global scal...