[R] Removing an attached object

Pancho Mulongeni p.mulongeni at namibia.pharmaccess.org
Tue Jan 15 11:55:50 CET 2013

Dear All,
I am a bit confused, I attached my data frame using 'attach(DATA)'
Then I removed it using 'rm(DATA)'
But for some reason it is still at position 2 at the search path
 [1] ".GlobalEnv"        "DATA"              "package:foreign"  
 [4] "package:stats"     "package:graphics"  "package:grDevices"
 [7] "package:datasets"  "package:rcom"      "package:rscproxy" 
[10] "package:utils"     "package:methods"   "RExcelEnv"        
[13] "Autoloads"         "package:base"     

Also when I enter the names of factors in this dataframe, such as 'AGE', I get a list of data values.
This is weird, why does it not disappear from the search path?

Pancho Mulongeni
Research Assistant
PharmAccess Foundation
1 Fouché Street
Windhoek West
Tel:   +264 61 419 000
Fax:  +264 61 419 001/2
Mob: +264 81 4456 286

More information about the R-help mailing list