[R] New column of data filled with the larger value from 2 columns

robgriffin247 robgriffin247 at hotmail.com
Wed Oct 26 14:17:07 CEST 2011


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.



More information about the R-help mailing list