Thank you! Do you know why ifelse() sometimes returns "NULL" ? -- View this message in context: http://r.789695.n4.nabble.com/Assignment-problems-tp4578672p4581491.html Sent from the R help mailing list archive at Nabble.com.