Hi Petr, You were correct , thats was the mistake . I am sorry for last reply. now its working. Cheers Uday -- View this message in context: http://r.789695.n4.nabble.com/logical-operator-for-different-dimensions-tp4383316p4384143.html Sent from the R help mailing list archive at Nabble.com.