it must be terribly simple, can someone quickly help me? test <- data.frame(y=c(1:10), x=as.factor(c(rep("a",5),rep("b",5))))
how can i change the factor labels from "a" and "b" to for example "u" and "v"? i don't succeed with factor() thanks a lot ------------------------------------------------ Sebastian Leuzinger Institute of Botany, University of Basel ______________________________________________ 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