data$C <- pmax(data$A,data$B) worked perfectly thank you very much -- View this message in context: http://r.789695.n4.nabble.com/New-column-of-data-filled-with-the-larger-value-from-2-columns-tp3940020p3940399.html Sent from the R help mailing list archive at Nabble.com.