I have 1 row with 20 columns which is having numeric data. Now i want to find out the 3 column name which is having the maximum value in single row in descending order.
dd <- data.frame(a=10,b=45,c=67,d=32,e=5,f=46,g=23,h=65,i=87,j=43)
a b c d e f g h i j
10 45 67 32 5 46 23 65 87 43
I tried this
max.col(dd)
but i am getting only single value. I want to find 3 max column name/number