[R] Removing an attached object
Pancho Mulongeni
p.mulongeni at namibia.pharmaccess.org
Tue Jan 15 12:09:41 CET 2013
Thanks, that makes it clear
-----Original Message-----
From: Pascal Oettli [mailto:kridox at ymail.com]
Sent: Tuesday, January 15, 2013 1:07 PM
To: Pancho Mulongeni
Cc: R help
Subject: Re: [R] Removing an attached object
Hi,
Please read the following:
http://stackoverflow.com/questions/3536036/rmlist-ls-doesnt-completely-clear-the-workspace
HTH,
Pascal
Le 15/01/2013 19:55, Pancho Mulongeni a écrit :
> 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
> search()
> [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?
> Thanks
>
> Pancho Mulongeni
> Research Assistant
> PharmAccess Foundation
> 1 Fouché Street
> Windhoek West
> Windhoek
> Namibia
>
> Tel: +264 61 419 000
> Fax: +264 61 419 001/2
> Mob: +264 81 4456 286
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
More information about the R-help
mailing list