From: Heinz Tuechler <tuechler_at_gmx.at>

Date: Sat 02 Apr 2005 - 21:01:57 EST

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Apr 02 22:09:11 2005

Date: Sat 02 Apr 2005 - 21:01:57 EST

## Example:

f1 <- factor(c(rep('c1-low',2),rep('c2-med',5),rep('c3-high',3)))
f2 <- factor(c(rep('c1-low',5),rep('c2-low',3),rep('c3-low',2)))
df.f12 <- data.frame(f1,f2) # data.frame containing factors

## this does work

df.f12.num <- data.frame(unclass(df.f12[[1]]),unclass(df.f12[[2]]))
df.f12.num

## this does not work

df.f12.num <- data.frame(unclass(df.f12[[1:2]]))
df.f12.num

## this does not work

df.f12.num <- data.frame(unclass(df.f12[1:2]))
df.f12.num

R-help@stat.math.ethz.ch mailing list

https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Apr 02 22:09:11 2005

*
This archive was generated by hypermail 2.1.8
: Fri 03 Mar 2006 - 03:31:00 EST
*