Skip to content

rbind.data.frame converts character column to factor (PR#9917)

1 message · sebastien.villemot at ens.fr

#
Full_Name: S?bastien Villemot
Version: 2.5.1
OS: Debian GNU/Linux (Testing aka "Lenny")
Submission from: (NULL) (193.51.127.120)


Here is the transcript of a R session under version 2.5.1:
[1] "character"
[1] "integer"

The column "a" has been converted from character to factor.

This was not happening under version 2.4.0 Patched (2006-11-25 r39997):
[1] "character"
[1] "character"

Furthermore, the bug doesn't show up (in 2.5.1) if the data frame is initially
non-empty:
[1] "character"
[1] "character"

Best,

S?bastien Villemot