Skip to content
Prev 6271 / 63424 Next

dimnames(X)[[2]] <- foo fails (PR#1122)

ripley@stats.ox.ac.uk writes:
Hmm. This is a consequence of
Error: more elements supplied than there are to replace

which S-PLUS does differently. However, I'm not sure we really want
this to change for the following reason:
$"":
NULL

$value:
[1] "a" "b"
[1] ""  "1"

Now what does this do if the array extent has length 1?
Problem in dimnames(X) <- .A0: Component 2 of dimnames has length 1, should be 2 
Use traceback() to see the call stack