Skip to content
Back to formatted view

Raw Message

Message-ID: <1393484730865-4685905.post@n4.nabble.com>
Date: 2014-02-27T07:05:30Z
From: Mat
Subject: find max value in different columns

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.