[R] How do I create an object in the Global environment from a function

Timothy.Mak at iop.kcl.ac.uk Timothy.Mak at iop.kcl.ac.uk
Thu Dec 14 13:06:09 CET 2006


Hi all, 

Say I have created an object b in my function 

myfunc <- function() b <- 34

How can I make b an object in the Global environment and not just in the 
environment of myfunc? 

Thanks, 

Tim



More information about the R-help mailing list