How to extract the row with min or max values? November 30, 2022 by Tarik You can include your which.max call as the first argument to your subsetting call: df[which.max(df$Temp),]