Hi arun kirshna just let me ask you something else. Imagin that i only want to "search" in the variables x3,x4 and x5. How can i do this? Regards, Bruno -- View this message in context: http://r.789695.n4.nabble.com/ifelse-reformulation-tp4645981p4646013.html Sent from the R help mailing list archive at Nabble.com.