> x <- as.factor(c("A", "B", "C")) > x [1] A B C Levels: A B C
> x.new <- factor(x, levels = c("B", "C", "A")) > x.new [1] A B C Levels: B C A
nls()