Thank you very much. I have managed to do the mappings. And sorry for not mentioning the data type. It was a data frame. -- View this message in context: http://r.789695.n4.nabble.com/Mapping-strings-to-integers-tp3762828p3763317.html Sent from the R help mailing list archive at Nabble.com.