Sorry, wasn't clear .. .Rui's code as worked -- View this message in context: http://r.789695.n4.nabble.com/Replace-a-variable-by-its-value-tp4630734p4630748.html Sent from the R help mailing list archive at Nabble.com.