R find the index of max value in dataframe. Commented Sep 7, 2016 at 0:07.