Thanks, that has worked like a dream! -- View this message in context: http://r.789695.n4.nabble.com/conditional-value-assignment-tp4646945p4646988.html Sent from the R help mailing list archive at Nabble.com.