Skip to content
Prev 31237 / 63424 Next

(PR#8192) [ subscripting sometimes loses names

Duncan Murdoch wrote:
I did, and they boil down to variations of

 > data.frame(val=1:3,row.names=letters[1:3])[,1]
[1] 1 2 3

but it's not obvious that the result should be named using the row.names 
and (in particular) whether or why it should differ from .....[[1]] and 
....$val. Given that for most purposes, extracting the relevant names 
would just be unnecessary red tape, I'd say that we can do without it.