Skip to content

re coercing data frame rows to character: Am I right that this is a bug?

1 message · Andrew Hoerner

#
Dear Folks--
All this seems to me to behave the way you expect, recognising that column b
is a factor:
a b
1 3 x
[1] 3 1
[1] x y
Levels: x y
[1] 1 2
[1] "x" "y"

But this seems to me to be wrong:
[1] "3" "1"

Shouldn't it be:
[1] "3" "x"
to be consistant with the normal pattern of coercing factors to character
values?
If it is a bug, is this the right place to post it?

sincerely, andrewH

--
View this message in context: http://r.789695.n4.nabble.com/re-coercing-data-frame-rows-to-character-Am-I-right-that-this-is-a-bug-tp3924449p3924449.html
Sent from the R help mailing list archive at Nabble.com.