Hi John, your example works also fine. Thats what I am looking for. Thanks so far. Greetings lars -- View this message in context: http://www.nabble.com/-R--Replacing-values-tf2841687.html#a7967398 Sent from the R help mailing list archive at Nabble.com.