Thank you for your reply again. I really know that NA is not "NA". I just want to figure out how to remove "NA" from the levels. Thanks again. -- View this message in context: http://r.789695.n4.nabble.com/Factor-function-tp3473984p3474127.html Sent from the R help mailing list archive at Nabble.com.