[Rd] rbind.data.frame converts logical to factor (PR#1536)
tlumley@u.washington.edu
tlumley@u.washington.edu
Thu, 9 May 2002 22:29:16 +0200 (MET DST)
> df<-data.frame(a=1:10)
> df$b<-df$a<5
> is.factor(df$b)
[1] FALSE
> ddf<-rbind(df,df)
> is.factor(ddf$b)
[1] TRUE
platform i386-pc-linux-gnu
arch i386
os linux-gnu
system i386, linux-gnu
status
major 1
minor 5.0
year 2002
month 04
day 29
language R
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._