Thank you for your help. Your R code works well. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Factor-function-tp3473984p3474196.html Sent from the R help mailing list archive at Nabble.com.