Skip to content
Prev 5955 / 63462 Next

cannot assign to NULL dimnames (PR#1042)

Full_Name: Hsiu-Khuern Tang
Version: 1.3.0
OS: GNU/Linux (Debian unstable)
Submission from: (NULL) (192.6.19.124)


Hi all,

    I am not sure this is a bug rather than an intentional design, but here
goes:
If I do
I get the following error message because dimnames(a) is NULL:

Error: more elements supplied than there are to replace

What is the proper way to do this?  I know this works:
Incidentally, in SPlus, I can assign to NULL dimnames.

Thanks,
Hsiu-Khuern.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel 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-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._