I am trying to get the corresponding value of the cell in R but unable to do so. My df has basically 2 columns. Date and Price for a set of 5 observations. I want to know at which date was the price the maximum.
I wrote the below code but it only shows Date
HH <- max(df$price, show = "Date")
HH
[1] Date