I have a huge dataframe - more than 1000 columns, 20000 rows.
id a b c d
1 42 3 NA NA NA
2 42 NA 6 NA NA
3 42 NA NA 7 NA
The goal is to find highest value for each column. The only way how to know do that is via mutate, but since there are so much column, it is impossible to write for each column separately.
Result should looks like this. Please note that for some columns is highest value NA.
id a b c d
1 42 3 6 7 NA