Re: [R] Repeated factor levels - inconsistency of factor and levels<- functions?

2008-09-25 Thread Honza Hucin
I have a vector x containing letters ("a", "b" etc.). Now I want to convert it to factor and group some letters into one common level. If I do it by factor function, giving the same label names for all values I want to group, it doesn't work: x<-letters[1:5] x [1] "a" "b"

[R] Repeated factor levels - inconsistency of factor and levels<- functions?

2008-09-25 Thread Honza Hucin
Hello, I have a vector x containing letters ("a", "b" etc.). Now I want to convert it to factor and group some letters into one common level. If I do it by factor function, giving the same label names for all values I want to group, it doesn't work: > x<-letters[1:5] > x [1] "a" "b" "c" "d" "e" >