[R] find max value in different columns
Mat
matthias.weber at fnt.de
Thu Feb 27 08:05:30 CET 2014
Hello together,
i have a data.frame like this one:
ID ONE TWO THREE
1 2 5 7
2 6 NA NA
3 5 7 NA
4 1 NA NA
Now i want a new column with the max-Value of "ONE", "TWO" and THREE. The
result look like this one:
ID ONE TWO THREE MAX
1 2 5 7 7
2 6 NA NA 6
3 5 7 NA 7
4 1 NA NA 1
how can i do this?
thank you. Mat
--
View this message in context: http://r.789695.n4.nabble.com/find-max-value-in-different-columns-tp4685905.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list