[R] update search path for attached data

From: Ulrich Leopold <uleopold_at_science.uva.nl>
Date: Fri, 04 Jul 2008 15:57:36 +0200 (CEST)


Dear list,

is there a way of updating the search path when using attach() for a data set.

I am overwriting a variable in a data frame. To update teh search path I do the follwoing:

> attach(dataset)
> some data manipulation of dataset
> detach(dataset)
> attach(dataset) # to update the search path

Is there a way to avoid the numerous detach() and attach() commands?

Thanks in advance,
Ulrich Leopold



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. Received on Fri 04 Jul 2008 - 14:01:09 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 04 Jul 2008 - 15:01:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive