"tom soyer" <[EMAIL PROTECTED]> writes:

> Thanks Marc and Gregor for the detailed explanation. You are right, the
> masking is potentially dangerous. Since R is object oriented, I am surprised
> that this is an issue. Does this mean that encapsulation does not exist in
> R?

R does have namespaces, but you can't have your cake and eat it too:
If your attached data frame contains a variable "airquality", then you
can't both access that one and the same-named example dataset as just
"airquality" (datasets::airquality still works).

-- 
   O__  ---- Peter Dalgaard             Ă˜ster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED])                  FAX: (+45) 35327907

______________________________________________
[email protected] 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.

Reply via email to