This fixed my problem thanks. -- View this message in context: http://r.789695.n4.nabble.com/problems-with-ifelse-tp3658498p3658543.html Sent from the R help mailing list archive at Nabble.com.