That's perfect, thanks! -- View this message in context: http://r.789695.n4.nabble.com/Check-character-string-for-value-and-assign-corresponding-value-in-a-new-variable-tp2062391p2062818.html Sent from the R help mailing list archive at Nabble.com.