if else worked. many thanks. -- View this message in context: http://r.789695.n4.nabble.com/Library-chron-tp3935969p3939374.html Sent from the R help mailing list archive at Nabble.com.