[R] problems with assigning a class to an environment
joehl at gmx.de
Mon Jun 24 21:14:36 CEST 2002
I was surprised to find that calling str() on an environment can remove
attributes from it, as in
> a <- new.env()
> class(a) <- "jens"
Class 'jens' length 0 <environment>
then I found in the R-Language-Manual in chapter 2.1.10 Environments the
"In particular, assigning attributes to an environment can lead to
Can please someone familiar with the internals explain what's going on?
Is it save, to assign a class to a list which contains an environment?
system i386, mingw32
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help