[R] What the difference between .Golbalenv and package:base?
rhelpmaillist at 163.com
Mon Aug 25 08:07:06 CEST 2014
As we know, there are a lot of environments in the search() path, such as .Golbalenv and package:base .
And i can just use .Golbalenv$a ,.Golbalenv$b to use the virable, but i must use as.envrionment("package:base") to find virable, i feel it not very convenient.
For example, when i use the following codes to add a new env into the search() path.
I must always convert the name to the environment, How can i just use the following form:
> assign("a",2,envir=new_name) #like using .GlobalEnv
mail: desolator88 at 163.com
Majored in Statistics from SJTU
More information about the R-help