And yes I want the variable 1 to have the identifier 1 etc. And I need to call this variable "order" so I can use it to create an anova table. -- View this message in context: http://r.789695.n4.nabble.com/Order-function-tp4651022p4651198.html Sent from the R help mailing list archive at Nabble.com.