thanks a lot. I also found that using "stringsAsFactors=FALSE" helps -- View this message in context: http://r.789695.n4.nabble.com/replacing-rows-data-frame-tp4646731p4646963.html Sent from the R help mailing list archive at Nabble.com.