[R] update search path for attached data

Ulrich Leopold uleopold at science.uva.nl
Fri Jul 4 15:57:36 CEST 2008


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



More information about the R-help mailing list