Skip to content
Prev 68969 / 398513 Next

summary(as.factor(x) - force to not sort the result according factor levels

Christoph Lehmann wrote on 5/2/2005 3:29 PM:
Use the levels argument of ?factor.

summary(factor(test, levels = unique(test)))

--sundar