[Rd] environmentName

Prof Brian Ripley ripley at stats.ox.ac.uk
Sun Jan 7 14:10:38 CET 2007


On Sun, 7 Jan 2007, Duncan Murdoch wrote:

[...]

> If you want
> to test for whether two variables refer to the same environment, then
> attach a unique label to the environments when you create them and check
> the labels.

You can simply use identical(env1, env2).

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-devel mailing list